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_COMPOSITOR_FRAME_METADATA_H_ |
| 6 #define CC_COMPOSITOR_FRAME_METADATA_H_ |
| 7 |
| 8 #include "cc/cc_export.h" |
| 9 #include "ui/gfx/size_f.h" |
| 10 #include "ui/gfx/vector2d_f.h" |
| 11 |
| 12 namespace cc { |
| 13 |
| 14 struct CC_EXPORT CompositorFrameMetadata |
| 15 { |
| 16 CompositorFrameMetadata(); |
| 17 ~CompositorFrameMetadata(); |
| 18 |
| 19 // Scroll offset and scale of the root layer. This can be used for tasks |
| 20 // like positioning windowed plugins. |
| 21 gfx::Vector2dF root_scroll_offset; |
| 22 float page_scale_factor; |
| 23 |
| 24 // These limits can be used together with the scroll/scale fields above to |
| 25 // determine if scrolling/scaling in a particular direction is possible. |
| 26 gfx::SizeF viewport_size; |
| 27 gfx::SizeF root_layer_size; |
| 28 float min_page_scale_factor; |
| 29 float max_page_scale_factor; |
| 30 |
| 31 // Used to position the Android location top bar, whose precise |
| 32 // position is computed by the renderer compositor. |
| 33 gfx::Vector2dF location_bar_offset; |
| 34 }; |
| 35 |
| 36 } // namespace cc |
| 37 |
| 38 #endif // CC_COMPOSITOR_FRAME_METADATA_H_ |
OLD | NEW |