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

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

Issue 380763002: Add builders for tracing event's structural arguments (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
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 <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 virtual scoped_ptr<SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor( 158 virtual scoped_ptr<SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor(
159 ui::LatencyInfo* latency) OVERRIDE; 159 ui::LatencyInfo* latency) OVERRIDE;
160 160
161 // TopControlsManagerClient implementation. 161 // TopControlsManagerClient implementation.
162 virtual void DidChangeTopControlsPosition() OVERRIDE; 162 virtual void DidChangeTopControlsPosition() OVERRIDE;
163 virtual bool HaveRootScrollLayer() const OVERRIDE; 163 virtual bool HaveRootScrollLayer() const OVERRIDE;
164 164
165 struct CC_EXPORT FrameData : public RenderPassSink { 165 struct CC_EXPORT FrameData : public RenderPassSink {
166 FrameData(); 166 FrameData();
167 virtual ~FrameData(); 167 virtual ~FrameData();
168 scoped_ptr<base::Value> AsValue() const; 168 void AsValueInto(base::debug::TracedValue* value) const;
169 169
170 std::vector<gfx::Rect> occluding_screen_space_rects; 170 std::vector<gfx::Rect> occluding_screen_space_rects;
171 std::vector<gfx::Rect> non_occluding_screen_space_rects; 171 std::vector<gfx::Rect> non_occluding_screen_space_rects;
172 RenderPassList render_passes; 172 RenderPassList render_passes;
173 RenderPassIdHashMap render_passes_by_id; 173 RenderPassIdHashMap render_passes_by_id;
174 const LayerImplList* render_surface_layer_list; 174 const LayerImplList* render_surface_layer_list;
175 LayerImplList will_draw_layers; 175 LayerImplList will_draw_layers;
176 bool contains_incomplete_tile; 176 bool contains_incomplete_tile;
177 bool has_no_damage; 177 bool has_no_damage;
178 178
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 421
422 void UpdateCurrentFrameTime(); 422 void UpdateCurrentFrameTime();
423 void ResetCurrentFrameTimeForNextFrame(); 423 void ResetCurrentFrameTimeForNextFrame();
424 virtual base::TimeTicks CurrentFrameTimeTicks(); 424 virtual base::TimeTicks CurrentFrameTimeTicks();
425 425
426 // Expected time between two begin impl frame calls. 426 // Expected time between two begin impl frame calls.
427 base::TimeDelta begin_impl_frame_interval() const { 427 base::TimeDelta begin_impl_frame_interval() const {
428 return begin_impl_frame_interval_; 428 return begin_impl_frame_interval_;
429 } 429 }
430 430
431 scoped_ptr<base::Value> AsValue() const { return AsValueWithFrame(NULL); } 431 void AsValueInto(base::debug::TracedValue* value) const {
432 scoped_ptr<base::Value> AsValueWithFrame(FrameData* frame) const; 432 return AsValueWithFrameInto(NULL, value);
433 scoped_ptr<base::Value> ActivationStateAsValue() const; 433 }
434 void AsValueWithFrameInto(FrameData* frame,
435 base::debug::TracedValue* value) const;
436 scoped_refptr<base::debug::ConvertableToTraceFormat> AsValue() const;
437 scoped_refptr<base::debug::ConvertableToTraceFormat> AsValueWithFrame(
438 FrameData* frame) const;
439 scoped_refptr<base::debug::ConvertableToTraceFormat> ActivationStateAsValue()
440 const;
441 void ActivationStateAsValueInto(base::debug::TracedValue* value) const;
434 442
435 bool page_scale_animation_active() const { return !!page_scale_animation_; } 443 bool page_scale_animation_active() const { return !!page_scale_animation_; }
436 444
437 virtual void CreateUIResource(UIResourceId uid, 445 virtual void CreateUIResource(UIResourceId uid,
438 const UIResourceBitmap& bitmap); 446 const UIResourceBitmap& bitmap);
439 // Deletes a UI resource. May safely be called more than once. 447 // Deletes a UI resource. May safely be called more than once.
440 virtual void DeleteUIResource(UIResourceId uid); 448 virtual void DeleteUIResource(UIResourceId uid);
441 void EvictAllUIResources(); 449 void EvictAllUIResources();
442 bool EvictedUIResourcesExist() const; 450 bool EvictedUIResourcesExist() const;
443 451
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
702 710
703 std::vector<PictureLayerImpl*> picture_layers_; 711 std::vector<PictureLayerImpl*> picture_layers_;
704 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; 712 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_;
705 713
706 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 714 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
707 }; 715 };
708 716
709 } // namespace cc 717 } // namespace cc
710 718
711 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 719 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698