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

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

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