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

Unified Diff: cc/scheduler/rate_limiter.h

Issue 51653008: Remove WGC3D::isContextLost references from cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 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 side-by-side diff with in-line comments
Download patch
Index: cc/scheduler/rate_limiter.h
diff --git a/cc/scheduler/rate_limiter.h b/cc/scheduler/rate_limiter.h
index 04b90772e36f777d86d3e61b5585a1d00a6ca7bf..73073c49827d9d1eeb2dfc251b8b7736a286f034 100644
--- a/cc/scheduler/rate_limiter.h
+++ b/cc/scheduler/rate_limiter.h
@@ -9,9 +9,8 @@
namespace base { class SingleThreadTaskRunner; }
-namespace WebKit { class WebGraphicsContext3D; }
-
namespace cc {
+class TextureLayerClient;
class RateLimiterClient {
public:
@@ -21,15 +20,15 @@ class RateLimiterClient {
virtual ~RateLimiterClient() {}
};
-// A RateLimiter can be used to make sure that a single context does not
-// dominate all execution time. To use, construct a RateLimiter class around
-// the context and call Start() whenever calls are made on the context outside
-// of normal flow control. RateLimiter will block if the context is too far
-// ahead of the compositor.
+// A RateLimiter can be used to make sure that a single TextureLayerClient's
+// context does not dominate all execution time. To use, construct a
+// RateLimiter class around the client and call Start() whenever calls are made
+// on the context outside of normal flow control. RateLimiter will block if the
+// context is too far ahead of the compositor.
class RateLimiter : public base::RefCounted<RateLimiter> {
public:
static scoped_refptr<RateLimiter> Create(
- WebKit::WebGraphicsContext3D* context,
+ TextureLayerClient* texture_layer_client,
RateLimiterClient* client,
base::SingleThreadTaskRunner* task_runner);
@@ -41,14 +40,14 @@ class RateLimiter : public base::RefCounted<RateLimiter> {
private:
friend class base::RefCounted<RateLimiter>;
- RateLimiter(WebKit::WebGraphicsContext3D* context,
+ RateLimiter(TextureLayerClient* texture_layer_client,
RateLimiterClient* client,
base::SingleThreadTaskRunner* task_runner);
~RateLimiter();
void RateLimitContext();
- WebKit::WebGraphicsContext3D* context_;
+ TextureLayerClient* texture_layer_client_;
bool active_;
RateLimiterClient* client_;
base::SingleThreadTaskRunner* task_runner_;

Powered by Google App Engine
This is Rietveld 408576698