OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_ | 5 #ifndef CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_ |
6 #define CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_ | 6 #define CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_ |
7 | 7 |
8 #include "cc/base/cc_export.h" | 8 #include "cc/base/cc_export.h" |
9 #include "ui/events/latency_info.h" | 9 #include "ui/events/latency_info.h" |
10 #include "ui/gfx/size_f.h" | 10 #include "ui/gfx/size_f.h" |
| 11 #include "ui/gfx/rect.h" |
11 #include "ui/gfx/vector2d_f.h" | 12 #include "ui/gfx/vector2d_f.h" |
12 | 13 |
13 namespace cc { | 14 namespace cc { |
14 | 15 |
15 class CC_EXPORT CompositorFrameMetadata { | 16 class CC_EXPORT CompositorFrameMetadata { |
16 public: | 17 public: |
17 CompositorFrameMetadata(); | 18 CompositorFrameMetadata(); |
18 ~CompositorFrameMetadata(); | 19 ~CompositorFrameMetadata(); |
19 | 20 |
20 // The device scale factor used to generate this compositor frame. | 21 // The device scale factor used to generate this compositor frame. |
(...skipping 10 matching lines...) Expand all Loading... |
31 gfx::SizeF root_layer_size; | 32 gfx::SizeF root_layer_size; |
32 float min_page_scale_factor; | 33 float min_page_scale_factor; |
33 float max_page_scale_factor; | 34 float max_page_scale_factor; |
34 | 35 |
35 // Used to position the Android location top bar and page content, whose | 36 // Used to position the Android location top bar and page content, whose |
36 // precise position is computed by the renderer compositor. | 37 // precise position is computed by the renderer compositor. |
37 gfx::Vector2dF location_bar_offset; | 38 gfx::Vector2dF location_bar_offset; |
38 gfx::Vector2dF location_bar_content_translation; | 39 gfx::Vector2dF location_bar_content_translation; |
39 float overdraw_bottom_height; | 40 float overdraw_bottom_height; |
40 | 41 |
| 42 gfx::Rect overlay_position; |
| 43 unsigned overlay_texture_id_; |
| 44 |
41 ui::LatencyInfo latency_info; | 45 ui::LatencyInfo latency_info; |
42 }; | 46 }; |
43 | 47 |
44 } // namespace cc | 48 } // namespace cc |
45 | 49 |
46 #endif // CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_ | 50 #endif // CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_ |
OLD | NEW |