summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/skia/NativeImageSkia.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/graphics/skia/NativeImageSkia.cpp')
-rw-r--r--WebCore/platform/graphics/skia/NativeImageSkia.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/WebCore/platform/graphics/skia/NativeImageSkia.cpp b/WebCore/platform/graphics/skia/NativeImageSkia.cpp
index 28e0758..3cc89cc 100644
--- a/WebCore/platform/graphics/skia/NativeImageSkia.cpp
+++ b/WebCore/platform/graphics/skia/NativeImageSkia.cpp
@@ -35,6 +35,7 @@
#endif
#include "NativeImageSkia.h"
+#include "SharedGraphicsContext3D.h"
#include "SkiaUtils.h"
namespace WebCore {
@@ -54,6 +55,12 @@ NativeImageSkia::NativeImageSkia(const SkBitmap& other)
{
}
+
+NativeImageSkia::~NativeImageSkia()
+{
+ SharedGraphicsContext3D::removeTexturesFor(this);
+}
+
int NativeImageSkia::decodedSize() const
{
return getSize() + m_resizedImage.getSize();