diff options
author | Yong-Hwan Baek <meisterdevhwan@gmail.com> | 2018-04-20 21:44:43 +0900 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-04-22 14:42:01 +0000 |
commit | 701a3ca157c85935988e82cd630828babc46b460 (patch) | |
tree | 7228991a45a183349cfeaf1d38613e36b33a21ff /include | |
parent | 20f8bd7711196a83789c8e5286501b4711b845c4 (diff) |
Fixed SkVertices crashing on Windows DLL builds
SkVertices::Builder uses custom new operator but not exposed to dll.
While delete operator in SkVertices.h could be inlined, it causes crash on Windows DLL builds. This patch fixes this issue.
Change-Id: I8b635ad3aa4a3f496a392ce7840417947999e4b0
Reviewed-on: https://skia-review.googlesource.com/122480
Commit-Queue: Mike Klein <mtklein@google.com>
Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkVertices.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/core/SkVertices.h b/include/core/SkVertices.h index db1764e57e..9224eebd21 100644 --- a/include/core/SkVertices.h +++ b/include/core/SkVertices.h @@ -115,7 +115,7 @@ private: // these are needed since we've manually sized our allocation (see Builder::init) friend class SkNVRefCnt<SkVertices>; - void operator delete(void* p) { ::operator delete(p); } + void operator delete(void* p); static sk_sp<SkVertices> Alloc(int vCount, int iCount, uint32_t builderFlags, size_t* arraySize); |