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>
diff --git a/include/gpu/GrResourceKey.h b/include/gpu/GrResourceKey.h
index 8ba1140..2e7edab 100644
--- a/include/gpu/GrResourceKey.h
+++ b/include/gpu/GrResourceKey.h
@@ -139,8 +139,9 @@
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;
};
/**