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

Side by Side Diff: cc/output/compositor_frame_metadata.h

Issue 1533773002: Delete CC. (Closed) Base URL: git@github.com:domokit/mojo.git@cl-2e
Patch Set: rebase Created 5 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 unified diff | Download patch
« no previous file with comments | « cc/output/compositor_frame_ack.cc ('k') | cc/output/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_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_
OLDNEW
« no previous file with comments | « cc/output/compositor_frame_ack.cc ('k') | cc/output/compositor_frame_metadata.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698