diff options
author | Mike Reed <reed@google.com> | 2018-07-13 15:52:17 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-07-16 13:41:36 +0000 |
commit | 7e83f89dd67e7c66d853e78b4630450bfb406de0 (patch) | |
tree | f51820554baa912e3ba7acaffc8e209df6bebc20 /src/core/SkBitmapProcState.h | |
parent | eef6d69abc78c5e3dff86469db8c3b2d0ad0b863 (diff) |
plumb through arenaalloc
- simplifies the older pattern of storage/size
- removes a dynamic allocation in defaultbitmapcontroller
Bug: skia:
Change-Id: Ibc937d3e0c057e78cc0c8bf7d9ad2d824eb240d9
Reviewed-on: https://skia-review.googlesource.com/141321
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'src/core/SkBitmapProcState.h')
-rw-r--r-- | src/core/SkBitmapProcState.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/SkBitmapProcState.h b/src/core/SkBitmapProcState.h index 46e418cc02..7d16ba6686 100644 --- a/src/core/SkBitmapProcState.h +++ b/src/core/SkBitmapProcState.h @@ -8,6 +8,7 @@ #ifndef SkBitmapProcState_DEFINED #define SkBitmapProcState_DEFINED +#include "SkArenaAlloc.h" #include "SkBitmap.h" #include "SkBitmapController.h" #include "SkBitmapProvider.h" @@ -49,7 +50,7 @@ private: enum { kBMStateSize = 136 // found by inspection. if too small, we will call new/delete }; - SkAlignedSStorage<kBMStateSize> fBMStateStorage; + SkSTArenaAlloc<kBMStateSize> fAlloc; SkBitmapController::State* fBMState; }; |