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

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

Issue 2140783002: services/ui: Detect when a video is playing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tot merge 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/layers/video_layer_impl.cc ('k') | cc/proto/layer.proto » ('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 28 matching lines...) Expand all
39 float page_scale_factor = 0.f; 39 float page_scale_factor = 0.f;
40 40
41 // These limits can be used together with the scroll/scale fields above to 41 // These limits can be used together with the scroll/scale fields above to
42 // determine if scrolling/scaling in a particular direction is possible. 42 // determine if scrolling/scaling in a particular direction is possible.
43 gfx::SizeF scrollable_viewport_size; 43 gfx::SizeF scrollable_viewport_size;
44 gfx::SizeF root_layer_size; 44 gfx::SizeF root_layer_size;
45 float min_page_scale_factor = 0.f; 45 float min_page_scale_factor = 0.f;
46 float max_page_scale_factor = 0.f; 46 float max_page_scale_factor = 0.f;
47 bool root_overflow_x_hidden = false; 47 bool root_overflow_x_hidden = false;
48 bool root_overflow_y_hidden = false; 48 bool root_overflow_y_hidden = false;
49 bool may_contain_video = false;
49 50
50 // WebView makes quality decisions for rastering resourceless software frames 51 // WebView makes quality decisions for rastering resourceless software frames
51 // based on information that a scroll or animation is active. 52 // based on information that a scroll or animation is active.
52 // 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
53 // depending on this anymore. 54 // depending on this anymore.
54 bool is_resourceless_software_draw_with_scroll_or_animation = false; 55 bool is_resourceless_software_draw_with_scroll_or_animation = false;
55 56
56 // 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
57 // precise position is computed by the renderer compositor. 58 // precise position is computed by the renderer compositor.
58 gfx::Vector2dF location_bar_offset; 59 gfx::Vector2dF location_bar_offset;
(...skipping 18 matching lines...) Expand all
77 std::vector<SurfaceId> referenced_surfaces; 78 std::vector<SurfaceId> referenced_surfaces;
78 79
79 private: 80 private:
80 CompositorFrameMetadata(const CompositorFrameMetadata& other); 81 CompositorFrameMetadata(const CompositorFrameMetadata& other);
81 CompositorFrameMetadata operator=(const CompositorFrameMetadata&) = delete; 82 CompositorFrameMetadata operator=(const CompositorFrameMetadata&) = delete;
82 }; 83 };
83 84
84 } // namespace cc 85 } // namespace cc
85 86
86 #endif // CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_ 87 #endif // CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_
OLDNEW
« no previous file with comments | « cc/layers/video_layer_impl.cc ('k') | cc/proto/layer.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698