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

Unified Diff: sky/engine/platform/graphics/Pattern.cpp

Issue 922893002: Merge the Sky Engine changes from the SkyDart branch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « sky/engine/platform/BUILD.gn ('k') | sky/engine/public/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « sky/engine/platform/BUILD.gn ('k') | sky/engine/public/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698