diff options
author | 2016-04-08 14:24:37 -0700 | |
---|---|---|
committer | 2016-04-08 14:24:37 -0700 | |
commit | 42da45d399d73fe3521d9c18c483fb540ad0723c (patch) | |
tree | 0c0253489ba76902947e3a96064e3b9f6ee443bc /src | |
parent | ff3681156ced7718a73eca1e170824866d9e5776 (diff) |
Fix context size for benchmakr.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1871173002
Review URL: https://codereview.chromium.org/1871173002
Diffstat (limited to 'src')
-rw-r--r-- | src/core/SkBitmapProcShader.h | 4 |
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. |