Remove SkSmallAllocator.
TBR=mtklein@google.com
Change-Id: I375af12c5de4397a682c1946404282da95ad42ec
Reviewed-on: https://skia-review.googlesource.com/8392
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Herb Derby <herb@google.com>
diff --git a/src/core/SkImagePriv.h b/src/core/SkImagePriv.h
index d6e58d3..ea44770 100644
--- a/src/core/SkImagePriv.h
+++ b/src/core/SkImagePriv.h
@@ -9,7 +9,6 @@
#define SkImagePriv_DEFINED
#include "SkImage.h"
-#include "SkSmallAllocator.h"
#include "SkSurface.h"
enum SkCopyPixelsMode {
@@ -18,15 +17,9 @@
kNever_SkCopyPixelsMode, //!< never copy src pixels (even if they are marked mutable)
};
+// A good size for creating shader contexts on the stack.
enum {kSkBlitterContextSize = 3332};
-// Commonly used allocator. It currently is only used to allocate up to 3 objects. The total
-// bytes requested is calculated using one of our large shaders, its context size plus the size of
-// an Sk3DBlitter in SkDraw.cpp
-// Note that some contexts may contain other contexts (e.g. for compose shaders), but we've not
-// yet found a situation where the size below isn't big enough.
-typedef SkSmallAllocator<3, kSkBlitterContextSize> SkTBlitterAllocator;
-
// If alloc is non-nullptr, it will be used to allocate the returned SkShader, and MUST outlive
// the SkShader.
sk_sp<SkShader> SkMakeBitmapShader(const SkBitmap& src, SkShader::TileMode, SkShader::TileMode,