More workarounds on Windows Debug DLL crash.
SkData and SkTextBlob overwrites delete operator in header file.
Which causes crash on Windows Debug DLL Builds.
Sample Solution can be found in https://github.com/DevHwan/SkiaDLLTest
Bug: skia:
Change-Id: I36bc9445f5cd17afdf852009a0695036ee18ecf0
Reviewed-on: https://skia-review.googlesource.com/139680
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Mike Klein <mtklein@google.com>
diff --git a/include/core/SkTextBlob.h b/include/core/SkTextBlob.h
index 59151d3..672cc20 100644
--- a/include/core/SkTextBlob.h
+++ b/include/core/SkTextBlob.h
@@ -95,12 +95,9 @@
// Memory for objects of this class is created with sk_malloc rather than operator new and must
// be freed with sk_free.
- void operator delete(void* p) { sk_free(p); }
- void* operator new(size_t) {
- SK_ABORT("All blobs are created by placement new.");
- return sk_malloc_throw(0);
- }
- void* operator new(size_t, void* p) { return p; }
+ void operator delete(void* p);
+ void* operator new(size_t);
+ void* operator new(size_t, void* p);
static unsigned ScalarsPerGlyph(GlyphPositioning pos);