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

Side by Side Diff: cc/proxy.h

Issue 11365025: Make cc a component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win?? 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
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 "base/time.h" 10 #include "base/time.h"
11 #include <public/WebCompositorOutputSurface.h> 11 #include <public/WebCompositorOutputSurface.h>
12 #include "cc/cc_export.h"
12 13
13 namespace cc { 14 namespace cc {
14 15
15 class Thread; 16 class Thread;
16 class IntRect; 17 class IntRect;
17 class IntSize; 18 class IntSize;
18 struct RenderingStats; 19 struct RenderingStats;
19 struct RendererCapabilities; 20 struct RendererCapabilities;
20 21
21 // Abstract class responsible for proxying commands from the main-thread side of 22 // Abstract class responsible for proxying commands from the main-thread side of
22 // the compositor over to the compositor implementation. 23 // the compositor over to the compositor implementation.
23 class Proxy { 24 class CC_EXPORT Proxy {
24 public: 25 public:
25 static void setMainThread(Thread*); 26 static void setMainThread(Thread*);
26 static Thread* mainThread(); 27 static Thread* mainThread();
27 28
28 static bool hasImplThread(); 29 static bool hasImplThread();
29 static void setImplThread(Thread*); 30 static void setImplThread(Thread*);
30 static Thread* implThread(); 31 static Thread* implThread();
31 32
32 // Returns 0 if the current thread is neither the main thread nor the impl t hread. 33 // Returns 0 if the current thread is neither the main thread nor the impl t hread.
33 static Thread* currentThread(); 34 static Thread* currentThread();
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 #ifndef NDEBUG 125 #ifndef NDEBUG
125 DCHECK(Proxy::isMainThreadBlocked()); 126 DCHECK(Proxy::isMainThreadBlocked());
126 Proxy::setMainThreadBlocked(false); 127 Proxy::setMainThreadBlocked(false);
127 #endif 128 #endif
128 } 129 }
129 }; 130 };
130 131
131 } 132 }
132 133
133 #endif 134 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698