Roll WebRTC 9745:9761, Libjingle 9742:9761
[chromium-blink-merge.git] / android_webview / browser / child_frame.h
blobedcf6b4bbc7c9bbb04a64c0e63d28a80f0e3aaf0
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef ANDROID_WEBVIEW_BROWSER_CHILD_FRAME_H_
6 #define ANDROID_WEBVIEW_BROWSER_CHILD_FRAME_H_
8 #include "base/memory/scoped_ptr.h"
9 #include "ui/gfx/geometry/rect.h"
10 #include "ui/gfx/geometry/size.h"
11 #include "ui/gfx/transform.h"
13 namespace cc {
14 class CompositorFrame;
17 namespace android_webview {
19 class ChildFrame {
20 public:
21 ChildFrame(scoped_ptr<cc::CompositorFrame> frame,
22 bool viewport_rect_for_tile_priority_empty,
23 const gfx::Transform& transform_for_tile_priority,
24 bool offscreen_pre_raster,
25 bool is_layer);
26 ~ChildFrame();
28 scoped_ptr<cc::CompositorFrame> frame;
29 const bool viewport_rect_for_tile_priority_empty;
30 const gfx::Transform transform_for_tile_priority;
31 const bool offscreen_pre_raster;
32 const bool is_layer;
34 private:
35 DISALLOW_COPY_AND_ASSIGN(ChildFrame);
38 } // namespace webview
40 #endif // ANDROID_WEBVIEW_BROWSER_CHILD_FRAME_H_