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

Unified Diff: Source/WebCore/platform/graphics/chromium/RateLimiter.h

Issue 10201008: Merge 114475 - [chromium] Ensure RateLimiter waits for Swapbuffers completion (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1084/
Patch Set: Created 8 years, 8 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
Index: Source/WebCore/platform/graphics/chromium/RateLimiter.h
===================================================================
--- Source/WebCore/platform/graphics/chromium/RateLimiter.h (revision 114962)
+++ Source/WebCore/platform/graphics/chromium/RateLimiter.h (working copy)
@@ -36,21 +36,27 @@
class GraphicsContext3D;
+class RateLimiterClient {
+public:
+ virtual void rateLimit() = 0;
+};
+
// A class containing a timer, which calls rateLimitCHROMIUM on expiry
class RateLimiter : public RefCounted<RateLimiter> {
public:
- static PassRefPtr<RateLimiter> create(GraphicsContext3D*);
+ static PassRefPtr<RateLimiter> create(GraphicsContext3D*, RateLimiterClient*);
~RateLimiter();
void start();
void stop();
private:
- explicit RateLimiter(GraphicsContext3D*);
+ RateLimiter(GraphicsContext3D*, RateLimiterClient*);
RefPtr<GraphicsContext3D> m_context;
bool m_contextSupportsRateLimitingExtension;
Timer<RateLimiter> m_timer;
void rateLimitContext(Timer<RateLimiter>*);
+ RateLimiterClient *m_client;
};
}

Powered by Google App Engine
This is Rietveld 408576698