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

Side by Side Diff: cc/proxy.h

Issue 10690168: Aura: Resize locks with --ui-enable-threaded-compositing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address jamesr@ comments. Created 8 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 | Annotate | Revision Log
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 CCProxy_h 5 #ifndef CCProxy_h
6 #define CCProxy_h 6 #define CCProxy_h
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include <public/WebCompositorOutputSurface.h> 10 #include <public/WebCompositorOutputSurface.h>
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 virtual bool recreateContext() = 0; 58 virtual bool recreateContext() = 0;
59 59
60 virtual void renderingStats(RenderingStats*) = 0; 60 virtual void renderingStats(RenderingStats*) = 0;
61 61
62 virtual const RendererCapabilities& rendererCapabilities() const = 0; 62 virtual const RendererCapabilities& rendererCapabilities() const = 0;
63 63
64 virtual void setNeedsAnimate() = 0; 64 virtual void setNeedsAnimate() = 0;
65 virtual void setNeedsCommit() = 0; 65 virtual void setNeedsCommit() = 0;
66 virtual void setNeedsRedraw() = 0; 66 virtual void setNeedsRedraw() = 0;
67 67
68 // Defers commits until it is reset. Certain actions may forcibly allow comm its to go through (we post
69 // a task with a reset in the common case). So it is important that we alway s be in a comittable state.
jamesr 2012/10/23 21:24:34 not sure what exactly this comment is referring to
jonathan.backer 2012/10/24 16:42:14 Based on some of your earlier comments, it is an e
70 virtual void setDeferCommits(bool) = 0;
71 virtual bool deferCommits() const = 0;
72
68 virtual void didAddAnimation() = 0; 73 virtual void didAddAnimation() = 0;
69 74
70 virtual bool commitRequested() const = 0; 75 virtual bool commitRequested() const = 0;
71 76
72 virtual void start() = 0; // Must be called before using the proxy. 77 virtual void start() = 0; // Must be called before using the proxy.
73 virtual void stop() = 0; // Must be called before deleting the proxy. 78 virtual void stop() = 0; // Must be called before deleting the proxy.
74 79
75 // Forces 3D commands on all contexts to wait for all previous SwapBuffers t o finish before executing in the GPU 80 // Forces 3D commands on all contexts to wait for all previous SwapBuffers t o finish before executing in the GPU
76 // process. 81 // process.
77 virtual void forceSerializeOnSwapBuffers() = 0; 82 virtual void forceSerializeOnSwapBuffers() = 0;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 #ifndef NDEBUG 124 #ifndef NDEBUG
120 DCHECK(Proxy::isMainThreadBlocked()); 125 DCHECK(Proxy::isMainThreadBlocked());
121 Proxy::setMainThreadBlocked(false); 126 Proxy::setMainThreadBlocked(false);
122 #endif 127 #endif
123 } 128 }
124 }; 129 };
125 130
126 } 131 }
127 132
128 #endif 133 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698