Title: [110919] trunk/Source/WebCore
Revision
110919
Author
[email protected]
Date
2012-03-15 17:28:20 -0700 (Thu, 15 Mar 2012)

Log Message

[chromium] RateLimiter should hold a reference to its context
https://bugs.webkit.org/show_bug.cgi?id=80761

Reviewed by Stephen White.

* platform/graphics/chromium/RateLimiter.h:
(RateLimiter):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (110918 => 110919)


--- trunk/Source/WebCore/ChangeLog	2012-03-16 00:20:43 UTC (rev 110918)
+++ trunk/Source/WebCore/ChangeLog	2012-03-16 00:28:20 UTC (rev 110919)
@@ -1,3 +1,13 @@
+2012-03-15  James Robinson  <[email protected]>
+
+        [chromium] RateLimiter should hold a reference to its context
+        https://bugs.webkit.org/show_bug.cgi?id=80761
+
+        Reviewed by Stephen White.
+
+        * platform/graphics/chromium/RateLimiter.h:
+        (RateLimiter):
+
 2012-03-15  Adam Klein  <[email protected]>
 
         Share code in FormAssociatedElement by resetting the form owner whenever insertedIntoTree is called

Modified: trunk/Source/WebCore/platform/graphics/chromium/RateLimiter.cpp (110918 => 110919)


--- trunk/Source/WebCore/platform/graphics/chromium/RateLimiter.cpp	2012-03-16 00:20:43 UTC (rev 110918)
+++ trunk/Source/WebCore/platform/graphics/chromium/RateLimiter.cpp	2012-03-16 00:28:20 UTC (rev 110919)
@@ -49,6 +49,10 @@
     m_contextSupportsRateLimitingExtension = context->getExtensions()->supports("GL_CHROMIUM_rate_limit_offscreen_context");
 }
 
+RateLimiter::~RateLimiter()
+{
+}
+
 void RateLimiter::start()
 {
     if (m_contextSupportsRateLimitingExtension && !m_timer.isActive())

Modified: trunk/Source/WebCore/platform/graphics/chromium/RateLimiter.h (110918 => 110919)


--- trunk/Source/WebCore/platform/graphics/chromium/RateLimiter.h	2012-03-16 00:20:43 UTC (rev 110918)
+++ trunk/Source/WebCore/platform/graphics/chromium/RateLimiter.h	2012-03-16 00:28:20 UTC (rev 110919)
@@ -28,9 +28,9 @@
 
 #if USE(ACCELERATED_COMPOSITING)
 
-#include "PassRefPtr.h"
 #include "Timer.h"
 #include <wtf/RefCounted.h>
+#include <wtf/RefPtr.h>
 
 namespace WebCore {
 
@@ -40,12 +40,14 @@
 class RateLimiter : public RefCounted<RateLimiter> {
 public:
     static PassRefPtr<RateLimiter> create(GraphicsContext3D*);
+    ~RateLimiter();
+
     void start();
     void stop();
 
 private:
     explicit RateLimiter(GraphicsContext3D*);
-    GraphicsContext3D* m_context;
+    RefPtr<GraphicsContext3D> m_context;
     bool m_contextSupportsRateLimitingExtension;
     Timer<RateLimiter> m_timer;
     void rateLimitContext(Timer<RateLimiter>*);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to