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

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

Issue 2267263002: cc: Delete all the RendererCapabilities. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-prepare-mailbox-param
Patch Set: renderer-caps: rebase Created 4 years, 3 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
« 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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <bitset> 10 #include <bitset>
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 ON_FORCED, 89 ON_FORCED,
90 OFF_DEVICE, 90 OFF_DEVICE,
91 OFF_VIEWPORT, 91 OFF_VIEWPORT,
92 MSAA_CONTENT, 92 MSAA_CONTENT,
93 OFF_CONTENT 93 OFF_CONTENT
94 }; 94 };
95 95
96 // LayerTreeHost->Proxy callback interface. 96 // LayerTreeHost->Proxy callback interface.
97 class LayerTreeHostImplClient { 97 class LayerTreeHostImplClient {
98 public: 98 public:
99 virtual void UpdateRendererCapabilitiesOnImplThread() = 0;
100 virtual void DidLoseOutputSurfaceOnImplThread() = 0; 99 virtual void DidLoseOutputSurfaceOnImplThread() = 0;
101 virtual void CommitVSyncParameters(base::TimeTicks timebase, 100 virtual void CommitVSyncParameters(base::TimeTicks timebase,
102 base::TimeDelta interval) = 0; 101 base::TimeDelta interval) = 0;
103 virtual void SetBeginFrameSource(BeginFrameSource* source) = 0; 102 virtual void SetBeginFrameSource(BeginFrameSource* source) = 0;
104 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) = 0; 103 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) = 0;
105 virtual void DidSwapBuffersCompleteOnImplThread() = 0; 104 virtual void DidSwapBuffersCompleteOnImplThread() = 0;
106 virtual void OnCanDrawStateChanged(bool can_draw) = 0; 105 virtual void OnCanDrawStateChanged(bool can_draw) = 0;
107 virtual void NotifyReadyToActivate() = 0; 106 virtual void NotifyReadyToActivate() = 0;
108 virtual void NotifyReadyToDraw() = 0; 107 virtual void NotifyReadyToDraw() = 0;
109 // Please call these 3 functions through 108 // Please call these 3 functions through
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 } 414 }
416 415
417 bool create_low_res_tiling() const { 416 bool create_low_res_tiling() const {
418 return settings_.create_low_res_tiling && !use_gpu_rasterization_; 417 return settings_.create_low_res_tiling && !use_gpu_rasterization_;
419 } 418 }
420 ResourcePool* resource_pool() { return resource_pool_.get(); } 419 ResourcePool* resource_pool() { return resource_pool_.get(); }
421 DelegatingRenderer* renderer() { return renderer_.get(); } 420 DelegatingRenderer* renderer() { return renderer_.get(); }
422 ImageDecodeController* image_decode_controller() { 421 ImageDecodeController* image_decode_controller() {
423 return image_decode_controller_.get(); 422 return image_decode_controller_.get();
424 } 423 }
425 const RendererCapabilitiesImpl& GetRendererCapabilities() const;
426 424
427 bool SwapBuffers(const FrameData& frame); 425 bool SwapBuffers(const FrameData& frame);
428 virtual void WillBeginImplFrame(const BeginFrameArgs& args); 426 virtual void WillBeginImplFrame(const BeginFrameArgs& args);
429 virtual void DidFinishImplFrame(); 427 virtual void DidFinishImplFrame();
430 void DidModifyTilePriorities(); 428 void DidModifyTilePriorities();
431 429
432 LayerTreeImpl* active_tree() { return active_tree_.get(); } 430 LayerTreeImpl* active_tree() { return active_tree_.get(); }
433 const LayerTreeImpl* active_tree() const { return active_tree_.get(); } 431 const LayerTreeImpl* active_tree() const { return active_tree_.get(); }
434 LayerTreeImpl* pending_tree() { return pending_tree_.get(); } 432 LayerTreeImpl* pending_tree() { return pending_tree_.get(); }
435 const LayerTreeImpl* pending_tree() const { return pending_tree_.get(); } 433 const LayerTreeImpl* pending_tree() const { return pending_tree_.get(); }
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
839 837
840 std::unique_ptr<PendingTreeDurationHistogramTimer> 838 std::unique_ptr<PendingTreeDurationHistogramTimer>
841 pending_tree_duration_timer_; 839 pending_tree_duration_timer_;
842 840
843 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 841 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
844 }; 842 };
845 843
846 } // namespace cc 844 } // namespace cc
847 845
848 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 846 #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