OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ANDROID_WEBVIEW_BROWSER_CHILD_FRAME_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_CHILD_FRAME_H_ |
6 #define ANDROID_WEBVIEW_BROWSER_CHILD_FRAME_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_CHILD_FRAME_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "ui/gfx/geometry/rect.h" | 10 #include "ui/gfx/geometry/rect.h" |
11 #include "ui/gfx/geometry/size.h" | 11 #include "ui/gfx/geometry/size.h" |
12 #include "ui/gfx/transform.h" | 12 #include "ui/gfx/transform.h" |
13 | 13 |
14 namespace cc { | 14 namespace cc { |
15 class CompositorFrame; | 15 class CompositorFrame; |
16 } | 16 } |
17 | 17 |
18 namespace android_webview { | 18 namespace android_webview { |
19 | 19 |
20 class ChildFrame { | 20 class ChildFrame { |
21 public: | 21 public: |
22 ChildFrame(scoped_ptr<cc::CompositorFrame> frame, | 22 ChildFrame(uint32_t output_surface_id, |
| 23 scoped_ptr<cc::CompositorFrame> frame, |
23 uint32_t compositor_id, | 24 uint32_t compositor_id, |
24 bool viewport_rect_for_tile_priority_empty, | 25 bool viewport_rect_for_tile_priority_empty, |
25 const gfx::Transform& transform_for_tile_priority, | 26 const gfx::Transform& transform_for_tile_priority, |
26 bool offscreen_pre_raster, | 27 bool offscreen_pre_raster, |
27 bool is_layer); | 28 bool is_layer); |
28 ~ChildFrame(); | 29 ~ChildFrame(); |
29 | 30 |
| 31 const uint32_t output_surface_id; |
30 scoped_ptr<cc::CompositorFrame> frame; | 32 scoped_ptr<cc::CompositorFrame> frame; |
31 // The id of the compositor this |frame| comes from. | 33 // The id of the compositor this |frame| comes from. |
32 const uint32_t compositor_id; | 34 const uint32_t compositor_id; |
33 const bool viewport_rect_for_tile_priority_empty; | 35 const bool viewport_rect_for_tile_priority_empty; |
34 const gfx::Transform transform_for_tile_priority; | 36 const gfx::Transform transform_for_tile_priority; |
35 const bool offscreen_pre_raster; | 37 const bool offscreen_pre_raster; |
36 const bool is_layer; | 38 const bool is_layer; |
37 | 39 |
38 private: | 40 private: |
39 DISALLOW_COPY_AND_ASSIGN(ChildFrame); | 41 DISALLOW_COPY_AND_ASSIGN(ChildFrame); |
40 }; | 42 }; |
41 | 43 |
42 } // namespace webview | 44 } // namespace webview |
43 | 45 |
44 #endif // ANDROID_WEBVIEW_BROWSER_CHILD_FRAME_H_ | 46 #endif // ANDROID_WEBVIEW_BROWSER_CHILD_FRAME_H_ |
OLD | NEW |