Index: sky/engine/platform/graphics/Pattern.cpp |
diff --git a/sky/engine/platform/graphics/Pattern.cpp b/sky/engine/platform/graphics/Pattern.cpp |
index 3bd111217344e3610a30a60fd362d113ebc6b81d..70b5e1e78539fce9bf967bd5e7afb3d0d8490614 100644 |
--- a/sky/engine/platform/graphics/Pattern.cpp |
+++ b/sky/engine/platform/graphics/Pattern.cpp |
@@ -30,7 +30,6 @@ |
#include "sky/engine/platform/graphics/skia/SkiaUtils.h" |
#include "third_party/skia/include/core/SkCanvas.h" |
-#include "v8/include/v8.h" |
namespace blink { |
@@ -50,8 +49,6 @@ Pattern::Pattern(PassRefPtr<Image> image, RepeatMode repeatMode) |
Pattern::~Pattern() |
{ |
- if (m_externalMemoryAllocated) |
- v8::Isolate::GetCurrent()->AdjustAmountOfExternalAllocatedMemory(-m_externalMemoryAllocated); |
} |
SkShader* Pattern::shader() |
@@ -101,7 +98,6 @@ SkShader* Pattern::shader() |
// Clamp to int, since that's what the adjust function takes. |
m_externalMemoryAllocated = static_cast<int>(std::min(static_cast<size_t>(INT_MAX), bm2.getSafeSize())); |
- v8::Isolate::GetCurrent()->AdjustAmountOfExternalAllocatedMemory(m_externalMemoryAllocated); |
} |
return m_pattern.get(); |
} |