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

Unified Diff: cc/rate_limiter.h

Issue 11232051: Remove static thread pointers from CC (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
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
« cc/proxy.h ('K') | « cc/proxy.cc ('k') | cc/rate_limiter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/rate_limiter.h
diff --git a/cc/rate_limiter.h b/cc/rate_limiter.h
index 163086484510e33077f5fe37953ca18ce8c4e940..538a153f1b0c2cf2b6f6191a4b6dc7fcbcd52acb 100644
--- a/cc/rate_limiter.h
+++ b/cc/rate_limiter.h
@@ -6,6 +6,7 @@
#define RateLimiter_h
#include "base/memory/ref_counted.h"
+#include "cc/proxy.h"
namespace WebKit {
class WebGraphicsContext3D;
@@ -24,7 +25,7 @@ public:
// compositor.
class RateLimiter : public base::RefCounted<RateLimiter> {
public:
- static scoped_refptr<RateLimiter> create(WebKit::WebGraphicsContext3D*, RateLimiterClient*);
+ static scoped_refptr<RateLimiter> create(WebKit::WebGraphicsContext3D*, RateLimiterClient*, CCProxy*);
void start();
@@ -32,7 +33,7 @@ public:
void stop();
private:
- RateLimiter(WebKit::WebGraphicsContext3D*, RateLimiterClient*);
+ RateLimiter(WebKit::WebGraphicsContext3D*, RateLimiterClient*, CCProxy*);
~RateLimiter();
friend class base::RefCounted<RateLimiter>;
@@ -43,6 +44,7 @@ private:
WebKit::WebGraphicsContext3D* m_context;
bool m_active;
RateLimiterClient *m_client;
+ CCProxy* m_proxy;
};
}
« cc/proxy.h ('K') | « cc/proxy.cc ('k') | cc/rate_limiter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698