| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_ | |
| 6 #define CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_ | |
| 7 | |
| 8 #include <vector> | |
| 9 | |
| 10 #include "ui/events/latency_info.h" | |
| 11 #include "ui/gfx/geometry/size_f.h" | |
| 12 #include "ui/gfx/geometry/vector2d_f.h" | |
| 13 | |
| 14 namespace cc { | |
| 15 | |
| 16 class CompositorFrameMetadata { | |
| 17 public: | |
| 18 CompositorFrameMetadata(); | |
| 19 ~CompositorFrameMetadata(); | |
| 20 | |
| 21 // The device scale factor used to generate this compositor frame. | |
| 22 float device_scale_factor; | |
| 23 | |
| 24 // Scroll offset and scale of the root layer. This can be used for tasks | |
| 25 // like positioning windowed plugins. | |
| 26 gfx::Vector2dF root_scroll_offset; | |
| 27 float page_scale_factor; | |
| 28 | |
| 29 // These limits can be used together with the scroll/scale fields above to | |
| 30 // determine if scrolling/scaling in a particular direction is possible. | |
| 31 gfx::SizeF scrollable_viewport_size; | |
| 32 gfx::SizeF root_layer_size; | |
| 33 float min_page_scale_factor; | |
| 34 float max_page_scale_factor; | |
| 35 bool root_overflow_x_hidden; | |
| 36 bool root_overflow_y_hidden; | |
| 37 | |
| 38 // Used to position the Android location top bar and page content, whose | |
| 39 // precise position is computed by the renderer compositor. | |
| 40 gfx::Vector2dF location_bar_offset; | |
| 41 gfx::Vector2dF location_bar_content_translation; | |
| 42 | |
| 43 std::vector<ui::LatencyInfo> latency_info; | |
| 44 | |
| 45 // A set of SurfaceSequences that this frame satisfies (always in the same | |
| 46 // namespace as the current Surface). | |
| 47 std::vector<uint32_t> satisfies_sequences; | |
| 48 }; | |
| 49 | |
| 50 } // namespace cc | |
| 51 | |
| 52 #endif // CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_ | |
| OLD | NEW |