aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar herb <herb@google.com>2016-04-08 14:24:37 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-04-08 14:24:37 -0700
commit42da45d399d73fe3521d9c18c483fb540ad0723c (patch)
tree0c0253489ba76902947e3a96064e3b9f6ee443bc /src
parentff3681156ced7718a73eca1e170824866d9e5776 (diff)
Fix context size for benchmakr.
Diffstat (limited to 'src')
-rw-r--r--src/core/SkBitmapProcShader.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/SkBitmapProcShader.h b/src/core/SkBitmapProcShader.h
index e2d3900a17..4df2614ca4 100644
--- a/src/core/SkBitmapProcShader.h
+++ b/src/core/SkBitmapProcShader.h
@@ -50,12 +50,14 @@ private:
typedef SkShader INHERITED;
};
+enum {kSkBlitterContextSize = 2400};
+
// 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, 2400> SkTBlitterAllocator;
+typedef SkSmallAllocator<3, kSkBlitterContextSize> SkTBlitterAllocator;
// If alloc is non-nullptr, it will be used to allocate the returned SkShader, and MUST outlive
// the SkShader.