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

Unified 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: Fix compile errors on mac/win Created 8 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/compositor_frame.h ('k') | cc/compositor_frame_metadata.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/compositor_frame_metadata.h
diff --git a/cc/compositor_frame_metadata.h b/cc/compositor_frame_metadata.h
new file mode 100644
index 0000000000000000000000000000000000000000..92a48ffba2c4aaff0a7955bd41ddf99e20e44b1c
--- /dev/null
+++ b/cc/compositor_frame_metadata.h
@@ -0,0 +1,39 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CC_COMPOSITOR_FRAME_METADATA_H_
+#define CC_COMPOSITOR_FRAME_METADATA_H_
+
+#include "cc/cc_export.h"
+#include "ui/gfx/size_f.h"
+#include "ui/gfx/vector2d_f.h"
+
+namespace cc {
+
+class CC_EXPORT CompositorFrameMetadata
+{
+ public:
+ CompositorFrameMetadata();
+ ~CompositorFrameMetadata();
+
+ // Scroll offset and scale of the root layer. This can be used for tasks
+ // like positioning windowed plugins.
+ gfx::Vector2dF root_scroll_offset;
+ float page_scale_factor;
+
+ // These limits can be used together with the scroll/scale fields above to
+ // determine if scrolling/scaling in a particular direction is possible.
+ gfx::SizeF viewport_size;
+ gfx::SizeF root_layer_size;
+ float min_page_scale_factor;
+ float max_page_scale_factor;
+
+ // Used to position the Android location top bar, whose precise
+ // position is computed by the renderer compositor.
+ gfx::Vector2dF location_bar_offset;
+};
+
+} // namespace cc
+
+#endif // CC_COMPOSITOR_FRAME_METADATA_H_
« no previous file with comments | « cc/compositor_frame.h ('k') | cc/compositor_frame_metadata.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698