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

Unified Diff: cc/proxy.h

Issue 11189043: cc: Rename cc classes and members to match filenames (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: cc/proxy.h
diff --git a/cc/proxy.h b/cc/proxy.h
index cae128e51abf826733da2dbdfb149470fa899d41..b7720ccb133043822d430bceb938a169446d35de 100644
--- a/cc/proxy.h
+++ b/cc/proxy.h
@@ -10,27 +10,27 @@
namespace cc {
-class CCThread;
+class Thread;
class IntRect;
class IntSize;
-struct CCRenderingStats;
+struct RenderingStats;
struct RendererCapabilities;
// Abstract class responsible for proxying commands from the main-thread side of
// the compositor over to the compositor implementation.
-class CCProxy {
+class Proxy {
public:
- static void setMainThread(CCThread*);
- static CCThread* mainThread();
+ static void setMainThread(Thread*);
+ static Thread* mainThread();
static bool hasImplThread();
- static void setImplThread(CCThread*);
- static CCThread* implThread();
+ static void setImplThread(Thread*);
+ static Thread* implThread();
// Returns 0 if the current thread is neither the main thread nor the impl thread.
- static CCThread* currentThread();
+ static Thread* currentThread();
- virtual ~CCProxy();
+ virtual ~Proxy();
virtual bool compositeAndReadback(void *pixels, const IntRect&) = 0;
@@ -56,7 +56,7 @@ public:
// reinitialized.
virtual bool recreateContext() = 0;
- virtual void renderingStats(CCRenderingStats*) = 0;
+ virtual void renderingStats(RenderingStats*) = 0;
virtual const RendererCapabilities& rendererCapabilities() const = 0;
@@ -96,12 +96,12 @@ public:
#endif
protected:
- CCProxy();
+ Proxy();
friend class DebugScopedSetImplThread;
friend class DebugScopedSetMainThreadBlocked;
private:
- DISALLOW_COPY_AND_ASSIGN(CCProxy);
+ DISALLOW_COPY_AND_ASSIGN(Proxy);
};
class DebugScopedSetMainThreadBlocked {
@@ -109,15 +109,15 @@ public:
DebugScopedSetMainThreadBlocked()
{
#if !ASSERT_DISABLED
- ASSERT(!CCProxy::isMainThreadBlocked());
- CCProxy::setMainThreadBlocked(true);
+ ASSERT(!Proxy::isMainThreadBlocked());
+ Proxy::setMainThreadBlocked(true);
#endif
}
~DebugScopedSetMainThreadBlocked()
{
#if !ASSERT_DISABLED
- ASSERT(CCProxy::isMainThreadBlocked());
- CCProxy::setMainThreadBlocked(false);
+ ASSERT(Proxy::isMainThreadBlocked());
+ Proxy::setMainThreadBlocked(false);
#endif
}
};
« cc/active_animation.h ('K') | « cc/priority_calculator.cc ('k') | cc/proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698