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

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

Issue 2030033003: Replace cc::ViewportSelectionBound with gfx::SelectionBound (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android build compiles locally Created 4 years, 6 months 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_ 5 #ifndef CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_
6 #define CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_ 6 #define CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
11 11
12 #include "cc/base/cc_export.h" 12 #include "cc/base/cc_export.h"
13 #include "cc/output/viewport_selection_bound.h" 13 #include "cc/input/selection.h"
14 #include "cc/surfaces/surface_id.h" 14 #include "cc/surfaces/surface_id.h"
15 #include "third_party/skia/include/core/SkColor.h" 15 #include "third_party/skia/include/core/SkColor.h"
16 #include "ui/events/latency_info.h" 16 #include "ui/events/latency_info.h"
17 #include "ui/gfx/geometry/size_f.h" 17 #include "ui/gfx/geometry/size_f.h"
18 #include "ui/gfx/geometry/vector2d_f.h" 18 #include "ui/gfx/geometry/vector2d_f.h"
19 #include "ui/gfx/selection_bound.h"
19 20
20 namespace cc { 21 namespace cc {
21 22
22 class CC_EXPORT CompositorFrameMetadata { 23 class CC_EXPORT CompositorFrameMetadata {
23 public: 24 public:
24 CompositorFrameMetadata(); 25 CompositorFrameMetadata();
25 CompositorFrameMetadata(const CompositorFrameMetadata& other); 26 CompositorFrameMetadata(const CompositorFrameMetadata& other);
26 ~CompositorFrameMetadata(); 27 ~CompositorFrameMetadata();
27 28
28 // The device scale factor used to generate this compositor frame. 29 // The device scale factor used to generate this compositor frame.
(...skipping 18 matching lines...) Expand all
47 gfx::Vector2dF location_bar_offset; 48 gfx::Vector2dF location_bar_offset;
48 gfx::Vector2dF location_bar_content_translation; 49 gfx::Vector2dF location_bar_content_translation;
49 50
50 // This color is usually obtained from the background color of the <body> 51 // This color is usually obtained from the background color of the <body>
51 // element. It can be used for filling in gutter areas around the frame when 52 // element. It can be used for filling in gutter areas around the frame when
52 // it's too small to fill the box the parent reserved for it. 53 // it's too small to fill the box the parent reserved for it.
53 SkColor root_background_color; 54 SkColor root_background_color;
54 55
55 // Provides selection region updates relative to the current viewport. If the 56 // Provides selection region updates relative to the current viewport. If the
56 // selection is empty or otherwise unused, the bound types will indicate such. 57 // selection is empty or otherwise unused, the bound types will indicate such.
57 ViewportSelection selection; 58 Selection<gfx::SelectionBound> selection;
58 59
59 std::vector<ui::LatencyInfo> latency_info; 60 std::vector<ui::LatencyInfo> latency_info;
60 61
61 // A set of SurfaceSequences that this frame satisfies (always in the same 62 // A set of SurfaceSequences that this frame satisfies (always in the same
62 // namespace as the current Surface). 63 // namespace as the current Surface).
63 std::vector<uint32_t> satisfies_sequences; 64 std::vector<uint32_t> satisfies_sequences;
64 65
65 // This is the set of Surfaces that are referenced by this frame. 66 // This is the set of Surfaces that are referenced by this frame.
66 std::vector<SurfaceId> referenced_surfaces; 67 std::vector<SurfaceId> referenced_surfaces;
67 }; 68 };
68 69
69 } // namespace cc 70 } // namespace cc
70 71
71 #endif // CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_ 72 #endif // CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698