aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2017-03-02 13:39:25 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-03-02 19:14:19 +0000
commitc464035f81caa06dab12a2761d24cfc8d9e598db (patch)
treed5bea58e5878725154762b6cee1fcc941ccb805c
parent391a89001a22266f7c0475afebad49e7184313d8 (diff)
pass storage directly to allocator for blitters
BUG=skia: Change-Id: If93df0437b2aba813042241f00eb0c6fba2a3c6f Reviewed-on: https://skia-review.googlesource.com/9161 Reviewed-by: Herb Derby <herb@google.com> Commit-Queue: Mike Reed <reed@google.com>
-rw-r--r--src/core/SkDraw.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/SkDraw.cpp b/src/core/SkDraw.cpp
index 52a0bf79db..03ca87eb9f 100644
--- a/src/core/SkDraw.cpp
+++ b/src/core/SkDraw.cpp
@@ -73,7 +73,8 @@ private:
// Owned by fAlloc, which will handle the delete.
SkBlitter* fBlitter;
- SkArenaAlloc fAlloc{kSkBlitterContextSize};
+ char fStorage[kSkBlitterContextSize];
+ SkArenaAlloc fAlloc{fStorage};
};
#define SkAutoBlitterChoose(...) SK_REQUIRE_LOCAL_VAR(SkAutoBlitterChoose)