Title: [95150] trunk/Source/WebCore
- Revision
- 95150
- Author
- commit-qu...@webkit.org
- Date
- 2011-09-14 19:12:36 -0700 (Wed, 14 Sep 2011)
Log Message
Make sure to GC decoded images that are only used with WebGL
https://bugs.webkit.org/show_bug.cgi?id=67899
Patch by John Bauman <jbau...@chromium.org> on 2011-09-14
Reviewed by James Robinson.
Tell CachedImage that the WebGL image was drawn so WebGL-only
content will have decoded images collected.
* platform/graphics/GraphicsContext3D.cpp:
(WebCore::GraphicsContext3D::extractImageData):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (95149 => 95150)
--- trunk/Source/WebCore/ChangeLog 2011-09-15 01:46:16 UTC (rev 95149)
+++ trunk/Source/WebCore/ChangeLog 2011-09-15 02:12:36 UTC (rev 95150)
@@ -1,3 +1,16 @@
+2011-09-14 John Bauman <jbau...@chromium.org>
+
+ Make sure to GC decoded images that are only used with WebGL
+ https://bugs.webkit.org/show_bug.cgi?id=67899
+
+ Reviewed by James Robinson.
+
+ Tell CachedImage that the WebGL image was drawn so WebGL-only
+ content will have decoded images collected.
+
+ * platform/graphics/GraphicsContext3D.cpp:
+ (WebCore::GraphicsContext3D::extractImageData):
+
2011-09-14 Antoine Labour <pi...@chromium.org>
Added a pure virtual class CCLayerDelegate which helps to isolate
Modified: trunk/Source/WebCore/platform/graphics/GraphicsContext3D.cpp (95149 => 95150)
--- trunk/Source/WebCore/platform/graphics/GraphicsContext3D.cpp 2011-09-15 01:46:16 UTC (rev 95149)
+++ trunk/Source/WebCore/platform/graphics/GraphicsContext3D.cpp 2011-09-15 02:12:36 UTC (rev 95150)
@@ -36,6 +36,7 @@
#include "Extensions3D.h"
#include "Image.h"
#include "ImageData.h"
+#include "ImageObserver.h"
#include <wtf/OwnArrayPtr.h>
#include <wtf/PassOwnArrayPtr.h>
@@ -189,6 +190,8 @@
componentsPerPixel * bytesPerComponent,
unpackAlignment);
}
+ if (ImageObserver *observer = image->imageObserver())
+ observer->didDraw(image);
return true;
}
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes