summaryrefslogtreecommitdiffstats
path: root/android_webview/browser/child_frame.cc
blob: f516edce8da20156671fe8f89614dc98db1458b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "android_webview/browser/child_frame.h"

#include "cc/output/compositor_frame.h"

namespace android_webview {

ChildFrame::ChildFrame(scoped_ptr<cc::CompositorFrame> frame,
                       const gfx::Rect& viewport_rect_for_tile_priority,
                       const gfx::Transform& transform_for_tile_priority,
                       bool offscreen_pre_raster,
                       bool is_layer)
    : frame(frame.Pass()),
      viewport_rect_for_tile_priority(viewport_rect_for_tile_priority),
      transform_for_tile_priority(transform_for_tile_priority),
      offscreen_pre_raster(offscreen_pre_raster),
      is_layer(is_layer) {
}

ChildFrame::~ChildFrame() {
}

}  // namespace webview