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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 gfx::SizeF root_layer_size; | 33 gfx::SizeF root_layer_size; |
34 float min_page_scale_factor; | 34 float min_page_scale_factor; |
35 float max_page_scale_factor; | 35 float max_page_scale_factor; |
36 | 36 |
37 // Used to position the Android location top bar and page content, whose | 37 // Used to position the Android location top bar and page content, whose |
38 // precise position is computed by the renderer compositor. | 38 // precise position is computed by the renderer compositor. |
39 gfx::Vector2dF location_bar_offset; | 39 gfx::Vector2dF location_bar_offset; |
40 gfx::Vector2dF location_bar_content_translation; | 40 gfx::Vector2dF location_bar_content_translation; |
41 float overdraw_bottom_height; | 41 float overdraw_bottom_height; |
42 | 42 |
| 43 // When showing or hiding top controls, the compositor calculates |
| 44 // |viewport_size| according to the original viewport size and the position |
| 45 // of the top controls. However, the viewport size of blink is only updated |
| 46 // after the browser sends the resize event, causing inconsistency between |
| 47 // the compositor and blink about the position of bottom-fixed-position |
| 48 // elements. When such elements exist, the browser needs to send the resize |
| 49 // event before sending any position-related events; otherwise it can delay |
| 50 // the event if needed. |
| 51 bool allow_delayed_resize; |
| 52 |
43 std::vector<ui::LatencyInfo> latency_info; | 53 std::vector<ui::LatencyInfo> latency_info; |
44 }; | 54 }; |
45 | 55 |
46 } // namespace cc | 56 } // namespace cc |
47 | 57 |
48 #endif // CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_ | 58 #endif // CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_ |
OLD | NEW |