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 "ui/gfx/size_f.h" | |
9 #include "ui/gfx/vector2d_f.h" | |
10 | |
11 namespace cc { | |
12 | |
13 struct CompositorFrameMetadata | |
14 { | |
15 CompositorFrameMetadata(); | |
16 ~CompositorFrameMetadata(); | |
17 | |
18 // Scroll offset and scale of the root layer. This can be used for tasks | |
19 // like positioning windowed plugins. | |
20 gfx::Vector2dF rootScrollOffset; | |
danakj
2012/11/21 03:39:07
new files in chromium style
| |
21 float pageScaleFactor; | |
22 | |
23 // These limits can be used together with the scroll/scale fields above to | |
24 // determine if scrolling/scaling in a particular direction is possible. | |
danakj
2012/11/21 03:39:07
The browser compositor isn't going to be answering
| |
25 gfx::SizeF viewportSize; | |
26 gfx::SizeF rootLayerSize; | |
27 float minPageScaleFactor; | |
28 float maxPageScaleFactor; | |
29 }; | |
30 | |
31 } // namespace cc | |
32 | |
33 #endif // CC_COMPOSITOR_FRAME_METADATA_H_ | |
OLD | NEW |