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

Side by Side Diff: cc/trees/layer_tree_host_impl.h

Issue 2140783002: services/ui: Detect when a video is playing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_TREES_LAYER_TREE_HOST_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_
6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <bitset> 10 #include <bitset>
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 FrameData(); 220 FrameData();
221 ~FrameData() override; 221 ~FrameData() override;
222 void AsValueInto(base::trace_event::TracedValue* value) const; 222 void AsValueInto(base::trace_event::TracedValue* value) const;
223 223
224 std::vector<gfx::Rect> occluding_screen_space_rects; 224 std::vector<gfx::Rect> occluding_screen_space_rects;
225 std::vector<gfx::Rect> non_occluding_screen_space_rects; 225 std::vector<gfx::Rect> non_occluding_screen_space_rects;
226 RenderPassList render_passes; 226 RenderPassList render_passes;
227 const LayerImplList* render_surface_layer_list; 227 const LayerImplList* render_surface_layer_list;
228 LayerImplList will_draw_layers; 228 LayerImplList will_draw_layers;
229 bool has_no_damage; 229 bool has_no_damage;
230 bool may_contain_video;
230 231
231 // RenderPassSink implementation. 232 // RenderPassSink implementation.
232 void AppendRenderPass(std::unique_ptr<RenderPass> render_pass) override; 233 void AppendRenderPass(std::unique_ptr<RenderPass> render_pass) override;
233 234
234 private: 235 private:
235 DISALLOW_COPY_AND_ASSIGN(FrameData); 236 DISALLOW_COPY_AND_ASSIGN(FrameData);
236 }; 237 };
237 238
238 virtual void BeginMainFrameAborted(CommitEarlyOutReason reason); 239 virtual void BeginMainFrameAborted(CommitEarlyOutReason reason);
239 virtual void ReadyToCommit() {} // For tests. 240 virtual void ReadyToCommit() {} // For tests.
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after
854 855
855 std::unique_ptr<PendingTreeDurationHistogramTimer> 856 std::unique_ptr<PendingTreeDurationHistogramTimer>
856 pending_tree_duration_timer_; 857 pending_tree_duration_timer_;
857 858
858 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 859 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
859 }; 860 };
860 861
861 } // namespace cc 862 } // namespace cc
862 863
863 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 864 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698