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

Side by Side Diff: cc/trees/proxy_impl.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/proxy.h ('k') | cc/trees/single_thread_proxy.h » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_PROXY_IMPL_H_ 5 #ifndef CC_TREES_PROXY_IMPL_H_
6 #define CC_TREES_PROXY_IMPL_H_ 6 #define CC_TREES_PROXY_IMPL_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "cc/base/cc_export.h" 9 #include "cc/base/cc_export.h"
10 10
11 namespace cc { 11 namespace cc {
12 12
13 // TODO(khushalsagar): The impl side of ThreadProxy. It is currently defined as 13 // TODO(khushalsagar): The impl side of ThreadProxy. It is currently defined as
14 // an interface with the implementation provided by ThreadProxy and will be 14 // an interface with the implementation provided by ThreadProxy and will be
15 // made an independent class. 15 // made an independent class.
16 // The methods added to this interface should only use the CompositorThreadOnly 16 // The methods added to this interface should only use the CompositorThreadOnly
17 // variables from ThreadProxy. 17 // variables from ThreadProxy.
18 // See crbug/527200 18 // See crbug/527200
19 class CC_EXPORT ProxyImpl { 19 class CC_EXPORT ProxyImpl {
20 public: 20 public:
21 // Callback for impl side commands received from the channel. 21 // Callback for impl side commands received from the channel.
22 virtual void SetThrottleFrameProductionOnImpl(bool throttle) = 0; 22 virtual void SetThrottleFrameProductionOnImpl(bool throttle) = 0;
23 virtual void SetLayerTreeHostClientReadyOnImpl() = 0;
24 23
25 // TODO(khushalsagar): Rename as GetWeakPtr() once ThreadProxy is split. 24 // TODO(khushalsagar): Rename as GetWeakPtr() once ThreadProxy is split.
26 virtual base::WeakPtr<ProxyImpl> GetImplWeakPtr() = 0; 25 virtual base::WeakPtr<ProxyImpl> GetImplWeakPtr() = 0;
27 26
28 protected: 27 protected:
29 virtual ~ProxyImpl() {} 28 virtual ~ProxyImpl() {}
30 }; 29 };
31 30
32 } // namespace cc 31 } // namespace cc
33 32
34 #endif // CC_TREES_PROXY_IMPL_H_ 33 #endif // CC_TREES_PROXY_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/proxy.h ('k') | cc/trees/single_thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698