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

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

Issue 873473006: cc: Commit directly to active tree when using single thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 base::WeakPtrFactory<ThreadProxy> weak_factory; 147 base::WeakPtrFactory<ThreadProxy> weak_factory;
148 }; 148 };
149 149
150 const MainThreadOnly& main() const; 150 const MainThreadOnly& main() const;
151 const MainThreadOrBlockedMainThread& blocked_main() const; 151 const MainThreadOrBlockedMainThread& blocked_main() const;
152 const CompositorThreadOnly& impl() const; 152 const CompositorThreadOnly& impl() const;
153 153
154 // Proxy implementation 154 // Proxy implementation
155 void FinishAllRendering() override; 155 void FinishAllRendering() override;
156 bool IsStarted() const override; 156 bool IsStarted() const override;
157 bool CommitToActiveTree() const override;
157 void SetOutputSurface(scoped_ptr<OutputSurface>) override; 158 void SetOutputSurface(scoped_ptr<OutputSurface>) override;
158 void SetLayerTreeHostClientReady() override; 159 void SetLayerTreeHostClientReady() override;
159 void SetVisible(bool visible) override; 160 void SetVisible(bool visible) override;
160 void SetThrottleFrameProduction(bool throttle) override; 161 void SetThrottleFrameProduction(bool throttle) override;
161 const RendererCapabilities& GetRendererCapabilities() const override; 162 const RendererCapabilities& GetRendererCapabilities() const override;
162 void SetNeedsAnimate() override; 163 void SetNeedsAnimate() override;
163 void SetNeedsUpdateLayers() override; 164 void SetNeedsUpdateLayers() override;
164 void SetNeedsCommit() override; 165 void SetNeedsCommit() override;
165 void SetNeedsRedraw(const gfx::Rect& damage_rect) override; 166 void SetNeedsRedraw(const gfx::Rect& damage_rect) override;
166 void SetNextCommitWaitsForActivation() override; 167 void SetNextCommitWaitsForActivation() override;
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 302
302 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; 303 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_;
303 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; 304 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_;
304 305
305 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); 306 DISALLOW_COPY_AND_ASSIGN(ThreadProxy);
306 }; 307 };
307 308
308 } // namespace cc 309 } // namespace cc
309 310
310 #endif // CC_TREES_THREAD_PROXY_H_ 311 #endif // CC_TREES_THREAD_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698