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

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

Issue 1385043002: cc: Remove SetLayerTreeHostClientReady() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@startcomp
Patch Set: sky's offline comment Created 5 years, 2 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/single_thread_proxy.cc ('k') | cc/trees/thread_proxy.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_THREAD_PROXY_H_ 5 #ifndef CC_TREES_THREAD_PROXY_H_
6 #define CC_TREES_THREAD_PROXY_H_ 6 #define CC_TREES_THREAD_PROXY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 164
165 const MainThreadOnly& main() const; 165 const MainThreadOnly& main() const;
166 const MainThreadOrBlockedMainThread& blocked_main() const; 166 const MainThreadOrBlockedMainThread& blocked_main() const;
167 const CompositorThreadOnly& impl() const; 167 const CompositorThreadOnly& impl() const;
168 168
169 // Proxy implementation 169 // Proxy implementation
170 void FinishAllRendering() override; 170 void FinishAllRendering() override;
171 bool IsStarted() const override; 171 bool IsStarted() const override;
172 bool CommitToActiveTree() const override; 172 bool CommitToActiveTree() const override;
173 void SetOutputSurface(OutputSurface* output_surface) override; 173 void SetOutputSurface(OutputSurface* output_surface) override;
174 void SetLayerTreeHostClientReady() override;
175 void SetVisible(bool visible) override; 174 void SetVisible(bool visible) override;
176 void SetThrottleFrameProduction(bool throttle) override; 175 void SetThrottleFrameProduction(bool throttle) override;
177 const RendererCapabilities& GetRendererCapabilities() const override; 176 const RendererCapabilities& GetRendererCapabilities() const override;
178 void SetNeedsAnimate() override; 177 void SetNeedsAnimate() override;
179 void SetNeedsUpdateLayers() override; 178 void SetNeedsUpdateLayers() override;
180 void SetNeedsCommit() override; 179 void SetNeedsCommit() override;
181 void SetNeedsRedraw(const gfx::Rect& damage_rect) override; 180 void SetNeedsRedraw(const gfx::Rect& damage_rect) override;
182 void SetNextCommitWaitsForActivation() override; 181 void SetNextCommitWaitsForActivation() override;
183 void NotifyInputThrottledUntilCommit() override; 182 void NotifyInputThrottledUntilCommit() override;
184 void SetDeferCommits(bool defer_commits) override; 183 void SetDeferCommits(bool defer_commits) override;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 void SendBeginMainFrameNotExpectedSoon() override; 246 void SendBeginMainFrameNotExpectedSoon() override;
248 247
249 // ProxyMain implementation 248 // ProxyMain implementation
250 base::WeakPtr<ProxyMain> GetMainWeakPtr() override; 249 base::WeakPtr<ProxyMain> GetMainWeakPtr() override;
251 void SetChannel(scoped_ptr<ThreadedChannel> threaded_channel) override; 250 void SetChannel(scoped_ptr<ThreadedChannel> threaded_channel) override;
252 void DidCompleteSwapBuffers() override; 251 void DidCompleteSwapBuffers() override;
253 252
254 // ProxyImpl implementation 253 // ProxyImpl implementation
255 base::WeakPtr<ProxyImpl> GetImplWeakPtr() override; 254 base::WeakPtr<ProxyImpl> GetImplWeakPtr() override;
256 void SetThrottleFrameProductionOnImpl(bool throttle) override; 255 void SetThrottleFrameProductionOnImpl(bool throttle) override;
257 void SetLayerTreeHostClientReadyOnImpl() override;
258 256
259 protected: 257 protected:
260 ThreadProxy( 258 ThreadProxy(
261 LayerTreeHost* layer_tree_host, 259 LayerTreeHost* layer_tree_host,
262 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, 260 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
263 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner, 261 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner,
264 scoped_ptr<BeginFrameSource> external_begin_frame_source); 262 scoped_ptr<BeginFrameSource> external_begin_frame_source);
265 263
266 private: 264 private:
267 // Called on main thread. 265 // Called on main thread.
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 327
330 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; 328 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_;
331 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; 329 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_;
332 330
333 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); 331 DISALLOW_COPY_AND_ASSIGN(ThreadProxy);
334 }; 332 };
335 333
336 } // namespace cc 334 } // namespace cc
337 335
338 #endif // CC_TREES_THREAD_PROXY_H_ 336 #endif // CC_TREES_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « cc/trees/single_thread_proxy.cc ('k') | cc/trees/thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698