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

Side by Side Diff: cc/trees/threaded_channel.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/thread_proxy.cc ('k') | cc/trees/threaded_channel.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 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_THREADED_CHANNEL_H_ 5 #ifndef CC_TREES_THREADED_CHANNEL_H_
6 #define CC_TREES_THREADED_CHANNEL_H_ 6 #define CC_TREES_THREADED_CHANNEL_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // sequence. Currently ThreadProxy implements both so we pass the pointer 69 // sequence. Currently ThreadProxy implements both so we pass the pointer
70 // and set ProxyImpl. 70 // and set ProxyImpl.
71 ThreadProxy* thread_proxy, 71 ThreadProxy* thread_proxy,
72 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, 72 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
73 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); 73 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner);
74 74
75 ~ThreadedChannel() override; 75 ~ThreadedChannel() override;
76 76
77 // ChannelMain Implementation 77 // ChannelMain Implementation
78 void SetThrottleFrameProductionOnImpl(bool throttle) override; 78 void SetThrottleFrameProductionOnImpl(bool throttle) override;
79 void SetLayerTreeHostClientReadyOnImpl() override;
80 79
81 // ChannelImpl Implementation 80 // ChannelImpl Implementation
82 void DidCompleteSwapBuffers() override; 81 void DidCompleteSwapBuffers() override;
83 82
84 protected: 83 protected:
85 ThreadedChannel(ThreadProxy* thread_proxy, 84 ThreadedChannel(ThreadProxy* thread_proxy,
86 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, 85 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
87 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); 86 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner);
88 87
89 private: 88 private:
90 base::SingleThreadTaskRunner* MainThreadTaskRunner() const; 89 base::SingleThreadTaskRunner* MainThreadTaskRunner() const;
91 base::SingleThreadTaskRunner* ImplThreadTaskRunner() const; 90 base::SingleThreadTaskRunner* ImplThreadTaskRunner() const;
92 91
93 ProxyMain* proxy_main_; 92 ProxyMain* proxy_main_;
94 93
95 ProxyImpl* proxy_impl_; 94 ProxyImpl* proxy_impl_;
96 95
97 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; 96 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
98 97
99 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner_; 98 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner_;
100 99
101 DISALLOW_COPY_AND_ASSIGN(ThreadedChannel); 100 DISALLOW_COPY_AND_ASSIGN(ThreadedChannel);
102 }; 101 };
103 102
104 } // namespace cc 103 } // namespace cc
105 104
106 #endif // CC_TREES_THREADED_CHANNEL_H_ 105 #endif // CC_TREES_THREADED_CHANNEL_H_
OLDNEW
« no previous file with comments | « cc/trees/thread_proxy.cc ('k') | cc/trees/threaded_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698