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

Unified Diff: cc/scheduler/rate_limiter.h

Issue 17114008: cc: Remove cc::Thread and cc::ThreadImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm-thread: NULLrefptrs Created 7 years, 6 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
« no previous file with comments | « cc/resources/resource_update_controller_unittest.cc ('k') | cc/scheduler/rate_limiter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler/rate_limiter.h
diff --git a/cc/scheduler/rate_limiter.h b/cc/scheduler/rate_limiter.h
index 0d2de38ebfcc251a6246e3ad4e6ae678379edaae..04b90772e36f777d86d3e61b5585a1d00a6ca7bf 100644
--- a/cc/scheduler/rate_limiter.h
+++ b/cc/scheduler/rate_limiter.h
@@ -7,12 +7,12 @@
#include "base/memory/ref_counted.h"
+namespace base { class SingleThreadTaskRunner; }
+
namespace WebKit { class WebGraphicsContext3D; }
namespace cc {
-class Thread;
-
class RateLimiterClient {
public:
virtual void RateLimit() = 0;
@@ -31,7 +31,7 @@ class RateLimiter : public base::RefCounted<RateLimiter> {
static scoped_refptr<RateLimiter> Create(
WebKit::WebGraphicsContext3D* context,
RateLimiterClient* client,
- Thread* thread);
+ base::SingleThreadTaskRunner* task_runner);
void Start();
@@ -43,7 +43,7 @@ class RateLimiter : public base::RefCounted<RateLimiter> {
RateLimiter(WebKit::WebGraphicsContext3D* context,
RateLimiterClient* client,
- Thread* thread);
+ base::SingleThreadTaskRunner* task_runner);
~RateLimiter();
void RateLimitContext();
@@ -51,7 +51,7 @@ class RateLimiter : public base::RefCounted<RateLimiter> {
WebKit::WebGraphicsContext3D* context_;
bool active_;
RateLimiterClient* client_;
- Thread* thread_;
+ base::SingleThreadTaskRunner* task_runner_;
DISALLOW_COPY_AND_ASSIGN(RateLimiter);
};
« no previous file with comments | « cc/resources/resource_update_controller_unittest.cc ('k') | cc/scheduler/rate_limiter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698