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

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

Issue 60353002: cc: add DevTools instrumentation for impl-side frames (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Insturment tree activation instead of commit for linking main thread frames to imple-side ones Created 7 years, 1 month 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 public TileManagerClient, 94 public TileManagerClient,
95 public OutputSurfaceClient, 95 public OutputSurfaceClient,
96 public TopControlsManagerClient, 96 public TopControlsManagerClient,
97 public base::SupportsWeakPtr<LayerTreeHostImpl> { 97 public base::SupportsWeakPtr<LayerTreeHostImpl> {
98 public: 98 public:
99 static scoped_ptr<LayerTreeHostImpl> Create( 99 static scoped_ptr<LayerTreeHostImpl> Create(
100 const LayerTreeSettings& settings, 100 const LayerTreeSettings& settings,
101 LayerTreeHostImplClient* client, 101 LayerTreeHostImplClient* client,
102 Proxy* proxy, 102 Proxy* proxy,
103 RenderingStatsInstrumentation* rendering_stats_instrumentation, 103 RenderingStatsInstrumentation* rendering_stats_instrumentation,
104 SharedBitmapManager* manager); 104 SharedBitmapManager* manager,
105 int id);
105 virtual ~LayerTreeHostImpl(); 106 virtual ~LayerTreeHostImpl();
106 107
107 // InputHandler implementation 108 // InputHandler implementation
108 virtual void BindToClient(InputHandlerClient* client) OVERRIDE; 109 virtual void BindToClient(InputHandlerClient* client) OVERRIDE;
109 virtual InputHandler::ScrollStatus ScrollBegin( 110 virtual InputHandler::ScrollStatus ScrollBegin(
110 gfx::Point viewport_point, 111 gfx::Point viewport_point,
111 InputHandler::ScrollInputType type) OVERRIDE; 112 InputHandler::ScrollInputType type) OVERRIDE;
112 virtual bool ScrollBy(gfx::Point viewport_point, 113 virtual bool ScrollBy(gfx::Point viewport_point,
113 gfx::Vector2dF scroll_delta) OVERRIDE; 114 gfx::Vector2dF scroll_delta) OVERRIDE;
114 virtual bool ScrollVerticallyByPage(gfx::Point viewport_point, 115 virtual bool ScrollVerticallyByPage(gfx::Point viewport_point,
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 gfx::Size size; 411 gfx::Size size;
411 bool opaque; 412 bool opaque;
412 }; 413 };
413 414
414 protected: 415 protected:
415 LayerTreeHostImpl( 416 LayerTreeHostImpl(
416 const LayerTreeSettings& settings, 417 const LayerTreeSettings& settings,
417 LayerTreeHostImplClient* client, 418 LayerTreeHostImplClient* client,
418 Proxy* proxy, 419 Proxy* proxy,
419 RenderingStatsInstrumentation* rendering_stats_instrumentation, 420 RenderingStatsInstrumentation* rendering_stats_instrumentation,
420 SharedBitmapManager* manager); 421 SharedBitmapManager* manager,
422 int id);
421 423
422 // Virtual for testing. 424 // Virtual for testing.
423 virtual void AnimateLayers(base::TimeTicks monotonic_time, 425 virtual void AnimateLayers(base::TimeTicks monotonic_time,
424 base::Time wall_clock_time); 426 base::Time wall_clock_time);
425 427
426 // Virtual for testing. 428 // Virtual for testing.
427 virtual base::TimeDelta LowFrequencyAnimationInterval() const; 429 virtual base::TimeDelta LowFrequencyAnimationInterval() const;
428 430
429 const AnimationRegistrar::AnimationControllerMap& 431 const AnimationRegistrar::AnimationControllerMap&
430 active_animation_controllers() const { 432 active_animation_controllers() const {
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 scoped_ptr<AnimationRegistrar> animation_registrar_; 622 scoped_ptr<AnimationRegistrar> animation_registrar_;
621 623
622 RenderingStatsInstrumentation* rendering_stats_instrumentation_; 624 RenderingStatsInstrumentation* rendering_stats_instrumentation_;
623 625
624 bool need_to_update_visible_tiles_before_draw_; 626 bool need_to_update_visible_tiles_before_draw_;
625 627
626 // Optional callback to notify of new tree activations. 628 // Optional callback to notify of new tree activations.
627 base::Closure tree_activation_callback_; 629 base::Closure tree_activation_callback_;
628 630
629 SharedBitmapManager* shared_bitmap_manager_; 631 SharedBitmapManager* shared_bitmap_manager_;
632 int id_;
630 633
631 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 634 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
632 }; 635 };
633 636
634 } // namespace cc 637 } // namespace cc
635 638
636 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 639 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698