Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(136)

Side by Side Diff: cc/compositor_frame_metadata.h

Issue 11316128: Send compositor frame IPC with metadata. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/cc.gyp ('k') | cc/compositor_frame_metadata.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « cc/cc.gyp ('k') | cc/compositor_frame_metadata.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698