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

Side by Side Diff: cc/surfaces/surface_aggregator.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/proto/layer.proto ('k') | cc/surfaces/surface_aggregator.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SURFACES_SURFACE_AGGREGATOR_H_ 5 #ifndef CC_SURFACES_SURFACE_AGGREGATOR_H_
6 #define CC_SURFACES_SURFACE_AGGREGATOR_H_ 6 #define CC_SURFACES_SURFACE_AGGREGATOR_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 #include <unordered_map> 10 #include <unordered_map>
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 bool is_clipped; 53 bool is_clipped;
54 gfx::Rect rect; 54 gfx::Rect rect;
55 }; 55 };
56 56
57 struct PrewalkResult { 57 struct PrewalkResult {
58 PrewalkResult(); 58 PrewalkResult();
59 ~PrewalkResult(); 59 ~PrewalkResult();
60 // This is the set of Surfaces that were referenced by another Surface, but 60 // This is the set of Surfaces that were referenced by another Surface, but
61 // not included in a SurfaceDrawQuad. 61 // not included in a SurfaceDrawQuad.
62 std::set<SurfaceId> undrawn_surfaces; 62 std::set<SurfaceId> undrawn_surfaces;
63 bool may_contain_video = false;
63 }; 64 };
64 65
65 ClipData CalculateClipRect(const ClipData& surface_clip, 66 ClipData CalculateClipRect(const ClipData& surface_clip,
66 const ClipData& quad_clip, 67 const ClipData& quad_clip,
67 const gfx::Transform& target_transform); 68 const gfx::Transform& target_transform);
68 69
69 RenderPassId RemapPassId(RenderPassId surface_local_pass_id, 70 RenderPassId RemapPassId(RenderPassId surface_local_pass_id,
70 const SurfaceId& surface_id); 71 const SurfaceId& surface_id);
71 72
72 void HandleSurfaceQuad(const SurfaceDrawQuad* surface_quad, 73 void HandleSurfaceQuad(const SurfaceDrawQuad* surface_quad,
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 TransferableResourceArray* dest_resource_list_; 169 TransferableResourceArray* dest_resource_list_;
169 170
170 base::WeakPtrFactory<SurfaceAggregator> weak_factory_; 171 base::WeakPtrFactory<SurfaceAggregator> weak_factory_;
171 172
172 DISALLOW_COPY_AND_ASSIGN(SurfaceAggregator); 173 DISALLOW_COPY_AND_ASSIGN(SurfaceAggregator);
173 }; 174 };
174 175
175 } // namespace cc 176 } // namespace cc
176 177
177 #endif // CC_SURFACES_SURFACE_AGGREGATOR_H_ 178 #endif // CC_SURFACES_SURFACE_AGGREGATOR_H_
OLDNEW
« no previous file with comments | « cc/proto/layer.proto ('k') | cc/surfaces/surface_aggregator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698