Index: Source/WebCore/platform/graphics/chromium/RateLimiter.cpp |
=================================================================== |
--- Source/WebCore/platform/graphics/chromium/RateLimiter.cpp (revision 114962) |
+++ Source/WebCore/platform/graphics/chromium/RateLimiter.cpp (working copy) |
@@ -35,14 +35,15 @@ |
namespace WebCore { |
-PassRefPtr<RateLimiter> RateLimiter::create(GraphicsContext3D* context) |
+PassRefPtr<RateLimiter> RateLimiter::create(GraphicsContext3D* context, RateLimiterClient *client) |
{ |
- return adoptRef(new RateLimiter(context)); |
+ return adoptRef(new RateLimiter(context, client)); |
} |
-RateLimiter::RateLimiter(GraphicsContext3D* context) |
+RateLimiter::RateLimiter(GraphicsContext3D* context, RateLimiterClient *client) |
: m_context(context) |
, m_timer(this, &RateLimiter::rateLimitContext) |
+ , m_client(client) |
{ |
ASSERT(context); |
ASSERT(context->getExtensions()); |
@@ -70,6 +71,7 @@ |
Extensions3DChromium* extensions = static_cast<Extensions3DChromium*>(m_context->getExtensions()); |
+ m_client->rateLimit(); |
extensions->rateLimitOffscreenContextCHROMIUM(); |
} |