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

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

Issue 656263003: cc: Move GpuMemoryBufferManager interface to gpu namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn build fix Created 6 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
« no previous file with comments | « cc/trees/layer_tree_host.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 <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 public ScrollbarAnimationControllerClient, 114 public ScrollbarAnimationControllerClient,
115 public BeginFrameSourceMixIn, 115 public BeginFrameSourceMixIn,
116 public base::SupportsWeakPtr<LayerTreeHostImpl> { 116 public base::SupportsWeakPtr<LayerTreeHostImpl> {
117 public: 117 public:
118 static scoped_ptr<LayerTreeHostImpl> Create( 118 static scoped_ptr<LayerTreeHostImpl> Create(
119 const LayerTreeSettings& settings, 119 const LayerTreeSettings& settings,
120 LayerTreeHostImplClient* client, 120 LayerTreeHostImplClient* client,
121 Proxy* proxy, 121 Proxy* proxy,
122 RenderingStatsInstrumentation* rendering_stats_instrumentation, 122 RenderingStatsInstrumentation* rendering_stats_instrumentation,
123 SharedBitmapManager* shared_bitmap_manager, 123 SharedBitmapManager* shared_bitmap_manager,
124 GpuMemoryBufferManager* gpu_memory_buffer_manager, 124 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
125 int id); 125 int id);
126 ~LayerTreeHostImpl() override; 126 ~LayerTreeHostImpl() override;
127 127
128 // BeginFrameSourceMixIn implementation 128 // BeginFrameSourceMixIn implementation
129 void OnNeedsBeginFramesChange(bool needs_begin_frames) override; 129 void OnNeedsBeginFramesChange(bool needs_begin_frames) override;
130 130
131 // InputHandler implementation 131 // InputHandler implementation
132 void BindToClient(InputHandlerClient* client) override; 132 void BindToClient(InputHandlerClient* client) override;
133 InputHandler::ScrollStatus ScrollBegin( 133 InputHandler::ScrollStatus ScrollBegin(
134 const gfx::Point& viewport_point, 134 const gfx::Point& viewport_point,
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 void ResetRequiresHighResToDraw() { requires_high_res_to_draw_ = false; } 482 void ResetRequiresHighResToDraw() { requires_high_res_to_draw_ = false; }
483 bool RequiresHighResToDraw() const { return requires_high_res_to_draw_; } 483 bool RequiresHighResToDraw() const { return requires_high_res_to_draw_; }
484 484
485 protected: 485 protected:
486 LayerTreeHostImpl( 486 LayerTreeHostImpl(
487 const LayerTreeSettings& settings, 487 const LayerTreeSettings& settings,
488 LayerTreeHostImplClient* client, 488 LayerTreeHostImplClient* client,
489 Proxy* proxy, 489 Proxy* proxy,
490 RenderingStatsInstrumentation* rendering_stats_instrumentation, 490 RenderingStatsInstrumentation* rendering_stats_instrumentation,
491 SharedBitmapManager* shared_bitmap_manager, 491 SharedBitmapManager* shared_bitmap_manager,
492 GpuMemoryBufferManager* gpu_memory_buffer_manager, 492 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
493 int id); 493 int id);
494 494
495 void UpdateViewportContainerSizes(); 495 void UpdateViewportContainerSizes();
496 496
497 // Virtual for testing. 497 // Virtual for testing.
498 virtual void AnimateLayers(base::TimeTicks monotonic_time); 498 virtual void AnimateLayers(base::TimeTicks monotonic_time);
499 499
500 // Virtual for testing. 500 // Virtual for testing.
501 virtual base::TimeDelta LowFrequencyAnimationInterval() const; 501 virtual base::TimeDelta LowFrequencyAnimationInterval() const;
502 502
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 693
694 RenderingStatsInstrumentation* rendering_stats_instrumentation_; 694 RenderingStatsInstrumentation* rendering_stats_instrumentation_;
695 MicroBenchmarkControllerImpl micro_benchmark_controller_; 695 MicroBenchmarkControllerImpl micro_benchmark_controller_;
696 696
697 bool need_to_update_visible_tiles_before_draw_; 697 bool need_to_update_visible_tiles_before_draw_;
698 698
699 // Optional callback to notify of new tree activations. 699 // Optional callback to notify of new tree activations.
700 base::Closure tree_activation_callback_; 700 base::Closure tree_activation_callback_;
701 701
702 SharedBitmapManager* shared_bitmap_manager_; 702 SharedBitmapManager* shared_bitmap_manager_;
703 GpuMemoryBufferManager* gpu_memory_buffer_manager_; 703 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager_;
704 int id_; 704 int id_;
705 705
706 std::set<SwapPromiseMonitor*> swap_promise_monitor_; 706 std::set<SwapPromiseMonitor*> swap_promise_monitor_;
707 707
708 std::vector<PictureLayerImpl*> picture_layers_; 708 std::vector<PictureLayerImpl*> picture_layers_;
709 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; 709 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_;
710 710
711 bool requires_high_res_to_draw_; 711 bool requires_high_res_to_draw_;
712 712
713 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 713 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
714 }; 714 };
715 715
716 } // namespace cc 716 } // namespace cc
717 717
718 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 718 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698