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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 28 matching lines...) Expand all Loading... |
39 float page_scale_factor = 0.f; | 39 float page_scale_factor = 0.f; |
40 | 40 |
41 // These limits can be used together with the scroll/scale fields above to | 41 // These limits can be used together with the scroll/scale fields above to |
42 // determine if scrolling/scaling in a particular direction is possible. | 42 // determine if scrolling/scaling in a particular direction is possible. |
43 gfx::SizeF scrollable_viewport_size; | 43 gfx::SizeF scrollable_viewport_size; |
44 gfx::SizeF root_layer_size; | 44 gfx::SizeF root_layer_size; |
45 float min_page_scale_factor = 0.f; | 45 float min_page_scale_factor = 0.f; |
46 float max_page_scale_factor = 0.f; | 46 float max_page_scale_factor = 0.f; |
47 bool root_overflow_x_hidden = false; | 47 bool root_overflow_x_hidden = false; |
48 bool root_overflow_y_hidden = false; | 48 bool root_overflow_y_hidden = false; |
| 49 bool may_contain_video = false; |
49 | 50 |
50 // WebView makes quality decisions for rastering resourceless software frames | 51 // WebView makes quality decisions for rastering resourceless software frames |
51 // based on information that a scroll or animation is active. | 52 // based on information that a scroll or animation is active. |
52 // TODO(aelias): Remove this and always enable filtering if there aren't apps | 53 // TODO(aelias): Remove this and always enable filtering if there aren't apps |
53 // depending on this anymore. | 54 // depending on this anymore. |
54 bool is_resourceless_software_draw_with_scroll_or_animation = false; | 55 bool is_resourceless_software_draw_with_scroll_or_animation = false; |
55 | 56 |
56 // Used to position the Android location top bar and page content, whose | 57 // Used to position the Android location top bar and page content, whose |
57 // precise position is computed by the renderer compositor. | 58 // precise position is computed by the renderer compositor. |
58 gfx::Vector2dF location_bar_offset; | 59 gfx::Vector2dF location_bar_offset; |
(...skipping 18 matching lines...) Expand all Loading... |
77 std::vector<SurfaceId> referenced_surfaces; | 78 std::vector<SurfaceId> referenced_surfaces; |
78 | 79 |
79 private: | 80 private: |
80 CompositorFrameMetadata(const CompositorFrameMetadata& other); | 81 CompositorFrameMetadata(const CompositorFrameMetadata& other); |
81 CompositorFrameMetadata operator=(const CompositorFrameMetadata&) = delete; | 82 CompositorFrameMetadata operator=(const CompositorFrameMetadata&) = delete; |
82 }; | 83 }; |
83 | 84 |
84 } // namespace cc | 85 } // namespace cc |
85 | 86 |
86 #endif // CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_ | 87 #endif // CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_ |
OLD | NEW |