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

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: try again 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
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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 127
128 // TopControlsManagerClient implementation. 128 // TopControlsManagerClient implementation.
129 virtual void DidChangeTopControlsPosition() OVERRIDE; 129 virtual void DidChangeTopControlsPosition() OVERRIDE;
130 virtual bool HaveRootScrollLayer() const OVERRIDE; 130 virtual bool HaveRootScrollLayer() const OVERRIDE;
131 131
132 void StartScrollbarAnimation(); 132 void StartScrollbarAnimation();
133 133
134 struct CC_EXPORT FrameData : public RenderPassSink { 134 struct CC_EXPORT FrameData : public RenderPassSink {
135 FrameData(); 135 FrameData();
136 virtual ~FrameData(); 136 virtual ~FrameData();
137 scoped_ptr<base::Value> AsValue() const;
137 138
138 std::vector<gfx::Rect> occluding_screen_space_rects; 139 std::vector<gfx::Rect> occluding_screen_space_rects;
139 std::vector<gfx::Rect> non_occluding_screen_space_rects; 140 std::vector<gfx::Rect> non_occluding_screen_space_rects;
140 RenderPassList render_passes; 141 RenderPassList render_passes;
141 RenderPassIdHashMap render_passes_by_id; 142 RenderPassIdHashMap render_passes_by_id;
142 const LayerImplList* render_surface_layer_list; 143 const LayerImplList* render_surface_layer_list;
143 LayerImplList will_draw_layers; 144 LayerImplList will_draw_layers;
144 bool contains_incomplete_tile; 145 bool contains_incomplete_tile;
145 bool has_no_damage; 146 bool has_no_damage;
146 147
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 bool pinch_gesture_active() const { return pinch_gesture_active_; } 363 bool pinch_gesture_active() const { return pinch_gesture_active_; }
363 364
364 void SetTreePriority(TreePriority priority); 365 void SetTreePriority(TreePriority priority);
365 366
366 void ResetCurrentFrameTimeForNextFrame(); 367 void ResetCurrentFrameTimeForNextFrame();
367 base::TimeTicks CurrentFrameTimeTicks(); 368 base::TimeTicks CurrentFrameTimeTicks();
368 base::Time CurrentFrameTime(); 369 base::Time CurrentFrameTime();
369 370
370 virtual base::TimeTicks CurrentPhysicalTimeTicks() const; 371 virtual base::TimeTicks CurrentPhysicalTimeTicks() const;
371 372
372 scoped_ptr<base::Value> AsValue() const; 373 scoped_ptr<base::Value> AsValue() const { return AsValueWithFrame(NULL); }
374 scoped_ptr<base::Value> AsValueWithFrame(FrameData* frame) const;
373 scoped_ptr<base::Value> ActivationStateAsValue() const; 375 scoped_ptr<base::Value> ActivationStateAsValue() const;
374 376
375 bool page_scale_animation_active() const { return !!page_scale_animation_; } 377 bool page_scale_animation_active() const { return !!page_scale_animation_; }
376 378
377 protected: 379 protected:
378 LayerTreeHostImpl( 380 LayerTreeHostImpl(
379 const LayerTreeSettings& settings, 381 const LayerTreeSettings& settings,
380 LayerTreeHostImplClient* client, 382 LayerTreeHostImplClient* client,
381 Proxy* proxy, 383 Proxy* proxy,
382 RenderingStatsInstrumentation* rendering_stats_instrumentation); 384 RenderingStatsInstrumentation* rendering_stats_instrumentation);
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 543
542 // Optional callback to notify of new tree activations. 544 // Optional callback to notify of new tree activations.
543 base::Closure tree_activation_callback_; 545 base::Closure tree_activation_callback_;
544 546
545 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 547 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
546 }; 548 };
547 549
548 } // namespace cc 550 } // namespace cc
549 551
550 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 552 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698