diff options
author | 2017-03-09 19:52:32 -0500 | |
---|---|---|
committer | 2017-03-10 14:17:53 +0000 | |
commit | e53de483930fc76f618da23940a6577d095fd136 (patch) | |
tree | 33123f5e9c582bdb3691cfe9a90ec5f186191f56 /include/gpu/GrResourceKey.h | |
parent | 7ba4d710519787a89142d950d021fd9f6f42d049 (diff) |
increase Builder's prealloc size after colorspace change
BUG=skia:
Change-Id: I003dcbde7d987404ae823df6621e13664cf440a1
Reviewed-on: https://skia-review.googlesource.com/9523
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'include/gpu/GrResourceKey.h')
-rw-r--r-- | include/gpu/GrResourceKey.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/gpu/GrResourceKey.h b/include/gpu/GrResourceKey.h index 8ba1140765..2e7edab577 100644 --- a/include/gpu/GrResourceKey.h +++ b/include/gpu/GrResourceKey.h @@ -139,8 +139,9 @@ private: friend class TestResource; // For unit test to access kMetaDataCnt. - // bmp textures require 5 uint32_t values. - SkAutoSTMalloc<kMetaDataCnt + 5, uint32_t> fKey; + // bmp textures require 7 uint32_t values (5 for the base key, and two more for image + // cacherator's decode format. + SkAutoSTMalloc<kMetaDataCnt + 7, uint32_t> fKey; }; /** |