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

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: 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/layer_tree_host_unittest.cc ('k') | cc/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 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. It is only supported when in threaded m ode. It's an error to make a sync call
69 // like compositeAndReadback while commits are deferred.
70 virtual void setDeferCommits(bool) = 0;
71
68 virtual void didAddAnimation() = 0; 72 virtual void didAddAnimation() = 0;
69 73
70 virtual bool commitRequested() const = 0; 74 virtual bool commitRequested() const = 0;
71 75
72 virtual void start() = 0; // Must be called before using the proxy. 76 virtual void start() = 0; // Must be called before using the proxy.
73 virtual void stop() = 0; // Must be called before deleting the proxy. 77 virtual void stop() = 0; // Must be called before deleting the proxy.
74 78
75 // Forces 3D commands on all contexts to wait for all previous SwapBuffers t o finish before executing in the GPU 79 // Forces 3D commands on all contexts to wait for all previous SwapBuffers t o finish before executing in the GPU
76 // process. 80 // process.
77 virtual void forceSerializeOnSwapBuffers() = 0; 81 virtual void forceSerializeOnSwapBuffers() = 0;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 #ifndef NDEBUG 123 #ifndef NDEBUG
120 DCHECK(Proxy::isMainThreadBlocked()); 124 DCHECK(Proxy::isMainThreadBlocked());
121 Proxy::setMainThreadBlocked(false); 125 Proxy::setMainThreadBlocked(false);
122 #endif 126 #endif
123 } 127 }
124 }; 128 };
125 129
126 } 130 }
127 131
128 #endif 132 #endif
OLDNEW
« no previous file with comments | « cc/layer_tree_host_unittest.cc ('k') | cc/single_thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698