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

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

Issue 279013002: Remove CompositeAndReadback from LayerTreeHost(Impl) and the Proxys. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm-cnr-lth-proxy-renderer: rebase-on-drawresult Created 6 years, 7 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
« no previous file with comments | « cc/test/layer_tree_test.cc ('k') | cc/trees/layer_tree_host.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_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_
6 #define CC_TREES_LAYER_TREE_HOST_H_ 6 #define CC_TREES_LAYER_TREE_HOST_H_
7 7
8 #include <limits> 8 #include <limits>
9 #include <list> 9 #include <list>
10 #include <set> 10 #include <set>
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 LayerTreeHostClient* client() { return client_; } 125 LayerTreeHostClient* client() { return client_; }
126 const base::WeakPtr<InputHandler>& GetInputHandler() { 126 const base::WeakPtr<InputHandler>& GetInputHandler() {
127 return input_handler_weak_ptr_; 127 return input_handler_weak_ptr_;
128 } 128 }
129 129
130 void NotifyInputThrottledUntilCommit(); 130 void NotifyInputThrottledUntilCommit();
131 131
132 void Composite(base::TimeTicks frame_begin_time); 132 void Composite(base::TimeTicks frame_begin_time);
133 133
134 // Composites and attempts to read back the result into the provided
135 // buffer. If it wasn't possible, e.g. due to context lost, will return
136 // false.
137 bool CompositeAndReadback(void* pixels,
138 const gfx::Rect& rect_in_device_viewport);
139
140 void FinishAllRendering(); 134 void FinishAllRendering();
141 135
142 void SetDeferCommits(bool defer_commits); 136 void SetDeferCommits(bool defer_commits);
143 137
144 // Test only hook 138 // Test only hook
145 virtual void DidDeferCommit(); 139 virtual void DidDeferCommit();
146 140
147 int source_frame_number() const { return source_frame_number_; } 141 int source_frame_number() const { return source_frame_number_; }
148 142
149 void SetNeedsDisplayOnAllLayers(); 143 void SetNeedsDisplayOnAllLayers();
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 443
450 ScopedPtrVector<SwapPromise> swap_promise_list_; 444 ScopedPtrVector<SwapPromise> swap_promise_list_;
451 std::set<SwapPromiseMonitor*> swap_promise_monitor_; 445 std::set<SwapPromiseMonitor*> swap_promise_monitor_;
452 446
453 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 447 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
454 }; 448 };
455 449
456 } // namespace cc 450 } // namespace cc
457 451
458 #endif // CC_TREES_LAYER_TREE_HOST_H_ 452 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « cc/test/layer_tree_test.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698