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

Side by Side Diff: cc/single_thread_proxy.cc

Issue 10690168: Aura: Resize locks with --ui-enable-threaded-compositing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: OSX compile fix. Created 8 years, 1 month 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/single_thread_proxy.h ('k') | cc/test/layer_tree_test_common.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 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 #include "config.h" 5 #include "config.h"
6 6
7 #include "cc/single_thread_proxy.h" 7 #include "cc/single_thread_proxy.h"
8 8
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "cc/draw_quad.h" 10 #include "cc/draw_quad.h"
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 } 224 }
225 225
226 void SingleThreadProxy::setNeedsRedraw() 226 void SingleThreadProxy::setNeedsRedraw()
227 { 227 {
228 // FIXME: Once we move render_widget scheduling into this class, we can 228 // FIXME: Once we move render_widget scheduling into this class, we can
229 // treat redraw requests more efficiently than commitAndRedraw requests. 229 // treat redraw requests more efficiently than commitAndRedraw requests.
230 m_layerTreeHostImpl->setFullRootLayerDamage(); 230 m_layerTreeHostImpl->setFullRootLayerDamage();
231 setNeedsCommit(); 231 setNeedsCommit();
232 } 232 }
233 233
234 void SingleThreadProxy::setDeferCommits(bool deferCommits)
235 {
236 // Thread-only feature.
237 NOTREACHED();
238 }
239
234 bool SingleThreadProxy::commitRequested() const 240 bool SingleThreadProxy::commitRequested() const
235 { 241 {
236 return false; 242 return false;
237 } 243 }
238 244
239 void SingleThreadProxy::didAddAnimation() 245 void SingleThreadProxy::didAddAnimation()
240 { 246 {
241 } 247 }
242 248
243 size_t SingleThreadProxy::maxPartialTextureUpdates() const 249 size_t SingleThreadProxy::maxPartialTextureUpdates() const
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 389
384 void SingleThreadProxy::didSwapFrame() 390 void SingleThreadProxy::didSwapFrame()
385 { 391 {
386 if (m_nextFrameIsNewlyCommittedFrame) { 392 if (m_nextFrameIsNewlyCommittedFrame) {
387 m_nextFrameIsNewlyCommittedFrame = false; 393 m_nextFrameIsNewlyCommittedFrame = false;
388 m_layerTreeHost->didCommitAndDrawFrame(); 394 m_layerTreeHost->didCommitAndDrawFrame();
389 } 395 }
390 } 396 }
391 397
392 } 398 }
OLDNEW
« no previous file with comments | « cc/single_thread_proxy.h ('k') | cc/test/layer_tree_test_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698