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

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

Issue 2106753004: Introduce bottom controls to CC and let it respond to scrolling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: findbug Created 4 years, 4 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
« no previous file with comments | « cc/ipc/struct_traits_unittest.cc ('k') | cc/trees/layer_tree.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 bool may_contain_video = false; 49 bool may_contain_video = false;
50 50
51 // WebView makes quality decisions for rastering resourceless software frames 51 // WebView makes quality decisions for rastering resourceless software frames
52 // based on information that a scroll or animation is active. 52 // based on information that a scroll or animation is active.
53 // TODO(aelias): Remove this and always enable filtering if there aren't apps 53 // TODO(aelias): Remove this and always enable filtering if there aren't apps
54 // depending on this anymore. 54 // depending on this anymore.
55 bool is_resourceless_software_draw_with_scroll_or_animation = false; 55 bool is_resourceless_software_draw_with_scroll_or_animation = false;
56 56
57 // Used to position the Android location top bar and page content, whose 57 // Used to position the Android location top bar and page content, whose
58 // precise position is computed by the renderer compositor. 58 // precise position is computed by the renderer compositor.
59 gfx::Vector2dF location_bar_offset; 59 float top_controls_height;
60 gfx::Vector2dF location_bar_content_translation; 60 float top_controls_shown_ratio;
61
62 // Used to position Android bottom bar, whose position is computed by the
63 // renderer compositor.
64 float bottom_controls_height;
65 float bottom_controls_shown_ratio;
61 66
62 // This color is usually obtained from the background color of the <body> 67 // This color is usually obtained from the background color of the <body>
63 // element. It can be used for filling in gutter areas around the frame when 68 // element. It can be used for filling in gutter areas around the frame when
64 // it's too small to fill the box the parent reserved for it. 69 // it's too small to fill the box the parent reserved for it.
65 SkColor root_background_color = SK_ColorWHITE; 70 SkColor root_background_color = SK_ColorWHITE;
66 71
67 // Provides selection region updates relative to the current viewport. If the 72 // Provides selection region updates relative to the current viewport. If the
68 // selection is empty or otherwise unused, the bound types will indicate such. 73 // selection is empty or otherwise unused, the bound types will indicate such.
69 Selection<gfx::SelectionBound> selection; 74 Selection<gfx::SelectionBound> selection;
70 75
71 std::vector<ui::LatencyInfo> latency_info; 76 std::vector<ui::LatencyInfo> latency_info;
72 77
73 // A set of SurfaceSequences that this frame satisfies (always in the same 78 // A set of SurfaceSequences that this frame satisfies (always in the same
74 // namespace as the current Surface). 79 // namespace as the current Surface).
75 std::vector<uint32_t> satisfies_sequences; 80 std::vector<uint32_t> satisfies_sequences;
76 81
77 // This is the set of Surfaces that are referenced by this frame. 82 // This is the set of Surfaces that are referenced by this frame.
78 std::vector<SurfaceId> referenced_surfaces; 83 std::vector<SurfaceId> referenced_surfaces;
79 84
80 private: 85 private:
81 CompositorFrameMetadata(const CompositorFrameMetadata& other); 86 CompositorFrameMetadata(const CompositorFrameMetadata& other);
82 CompositorFrameMetadata operator=(const CompositorFrameMetadata&) = delete; 87 CompositorFrameMetadata operator=(const CompositorFrameMetadata&) = delete;
83 }; 88 };
84 89
85 } // namespace cc 90 } // namespace cc
86 91
87 #endif // CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_ 92 #endif // CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_
OLDNEW
« no previous file with comments | « cc/ipc/struct_traits_unittest.cc ('k') | cc/trees/layer_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698