| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "android_webview/browser/compositor_id.h" |
| 10 #include "base/macros.h" | 11 #include "base/macros.h" |
| 11 #include "ui/gfx/geometry/rect.h" | 12 #include "ui/gfx/geometry/rect.h" |
| 12 #include "ui/gfx/geometry/size.h" | 13 #include "ui/gfx/geometry/size.h" |
| 13 #include "ui/gfx/transform.h" | 14 #include "ui/gfx/transform.h" |
| 14 | 15 |
| 15 namespace cc { | 16 namespace cc { |
| 16 class CompositorFrame; | 17 class CompositorFrame; |
| 17 } | 18 } |
| 18 | 19 |
| 19 namespace android_webview { | 20 namespace android_webview { |
| 21 struct CompositorID; |
| 20 | 22 |
| 21 class ChildFrame { | 23 class ChildFrame { |
| 22 public: | 24 public: |
| 23 ChildFrame(uint32_t output_surface_id, | 25 ChildFrame(uint32_t output_surface_id, |
| 24 std::unique_ptr<cc::CompositorFrame> frame, | 26 std::unique_ptr<cc::CompositorFrame> frame, |
| 25 uint32_t compositor_id, | 27 CompositorID compositor_id, |
| 26 bool viewport_rect_for_tile_priority_empty, | 28 bool viewport_rect_for_tile_priority_empty, |
| 27 const gfx::Transform& transform_for_tile_priority, | 29 const gfx::Transform& transform_for_tile_priority, |
| 28 bool offscreen_pre_raster, | 30 bool offscreen_pre_raster, |
| 29 bool is_layer); | 31 bool is_layer); |
| 30 ~ChildFrame(); | 32 ~ChildFrame(); |
| 31 | 33 |
| 32 const uint32_t output_surface_id; | 34 const uint32_t output_surface_id; |
| 33 std::unique_ptr<cc::CompositorFrame> frame; | 35 std::unique_ptr<cc::CompositorFrame> frame; |
| 34 // The id of the compositor this |frame| comes from. | 36 // The id of the compositor this |frame| comes from. |
| 35 const uint32_t compositor_id; | 37 const CompositorID compositor_id; |
| 36 const bool viewport_rect_for_tile_priority_empty; | 38 const bool viewport_rect_for_tile_priority_empty; |
| 37 const gfx::Transform transform_for_tile_priority; | 39 const gfx::Transform transform_for_tile_priority; |
| 38 const bool offscreen_pre_raster; | 40 const bool offscreen_pre_raster; |
| 39 const bool is_layer; | 41 const bool is_layer; |
| 40 | 42 |
| 41 private: | 43 private: |
| 42 DISALLOW_COPY_AND_ASSIGN(ChildFrame); | 44 DISALLOW_COPY_AND_ASSIGN(ChildFrame); |
| 43 }; | 45 }; |
| 44 | 46 |
| 45 } // namespace webview | 47 } // namespace webview |
| 46 | 48 |
| 47 #endif // ANDROID_WEBVIEW_BROWSER_CHILD_FRAME_H_ | 49 #endif // ANDROID_WEBVIEW_BROWSER_CHILD_FRAME_H_ |
| OLD | NEW |