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

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

Issue 20667002: cc: Add frame data to LTHI tracing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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
« no previous file with comments | « cc/quads/yuv_video_draw_quad.cc ('k') | cc/trees/layer_tree_host_impl.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 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 <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 132
133 // TopControlsManagerClient implementation. 133 // TopControlsManagerClient implementation.
134 virtual void DidChangeTopControlsPosition() OVERRIDE; 134 virtual void DidChangeTopControlsPosition() OVERRIDE;
135 virtual bool HaveRootScrollLayer() const OVERRIDE; 135 virtual bool HaveRootScrollLayer() const OVERRIDE;
136 136
137 void StartScrollbarAnimation(); 137 void StartScrollbarAnimation();
138 138
139 struct CC_EXPORT FrameData : public RenderPassSink { 139 struct CC_EXPORT FrameData : public RenderPassSink {
140 FrameData(); 140 FrameData();
141 virtual ~FrameData(); 141 virtual ~FrameData();
142 scoped_ptr<base::Value> AsValue() const;
142 143
143 std::vector<gfx::Rect> occluding_screen_space_rects; 144 std::vector<gfx::Rect> occluding_screen_space_rects;
144 std::vector<gfx::Rect> non_occluding_screen_space_rects; 145 std::vector<gfx::Rect> non_occluding_screen_space_rects;
145 RenderPassList render_passes; 146 RenderPassList render_passes;
146 RenderPassIdHashMap render_passes_by_id; 147 RenderPassIdHashMap render_passes_by_id;
147 const LayerImplList* render_surface_layer_list; 148 const LayerImplList* render_surface_layer_list;
148 LayerImplList will_draw_layers; 149 LayerImplList will_draw_layers;
149 bool contains_incomplete_tile; 150 bool contains_incomplete_tile;
150 bool has_no_damage; 151 bool has_no_damage;
151 152
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 bool pinch_gesture_active() const { return pinch_gesture_active_; } 365 bool pinch_gesture_active() const { return pinch_gesture_active_; }
365 366
366 void SetTreePriority(TreePriority priority); 367 void SetTreePriority(TreePriority priority);
367 368
368 void ResetCurrentFrameTimeForNextFrame(); 369 void ResetCurrentFrameTimeForNextFrame();
369 base::TimeTicks CurrentFrameTimeTicks(); 370 base::TimeTicks CurrentFrameTimeTicks();
370 base::Time CurrentFrameTime(); 371 base::Time CurrentFrameTime();
371 372
372 virtual base::TimeTicks CurrentPhysicalTimeTicks() const; 373 virtual base::TimeTicks CurrentPhysicalTimeTicks() const;
373 374
374 scoped_ptr<base::Value> AsValue() const; 375 scoped_ptr<base::Value> AsValue() const { return AsValueWithFrame(NULL); }
376 scoped_ptr<base::Value> AsValueWithFrame(FrameData* frame) const;
375 scoped_ptr<base::Value> ActivationStateAsValue() const; 377 scoped_ptr<base::Value> ActivationStateAsValue() const;
376 378
377 bool page_scale_animation_active() const { return !!page_scale_animation_; } 379 bool page_scale_animation_active() const { return !!page_scale_animation_; }
378 380
379 void CreateUIResource(UIResourceId uid, 381 void CreateUIResource(UIResourceId uid,
380 scoped_refptr<UIResourceBitmap> bitmap); 382 scoped_refptr<UIResourceBitmap> bitmap);
381 // Deletes a UI resource. May safely be called more than once. 383 // Deletes a UI resource. May safely be called more than once.
382 void DeleteUIResource(UIResourceId uid); 384 void DeleteUIResource(UIResourceId uid);
383 385
384 ResourceProvider::ResourceId ResourceIdForUIResource(UIResourceId uid) const; 386 ResourceProvider::ResourceId ResourceIdForUIResource(UIResourceId uid) const;
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 557
556 // Optional callback to notify of new tree activations. 558 // Optional callback to notify of new tree activations.
557 base::Closure tree_activation_callback_; 559 base::Closure tree_activation_callback_;
558 560
559 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 561 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
560 }; 562 };
561 563
562 } // namespace cc 564 } // namespace cc
563 565
564 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 566 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/quads/yuv_video_draw_quad.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698