diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/GrResourceKey.h | 4 | ||||
-rw-r--r-- | include/gpu/SkGr.h | 6 |
2 files changed, 4 insertions, 6 deletions
diff --git a/include/gpu/GrResourceKey.h b/include/gpu/GrResourceKey.h index 9958cfc872..6cfa90fd8a 100644 --- a/include/gpu/GrResourceKey.h +++ b/include/gpu/GrResourceKey.h @@ -138,8 +138,8 @@ 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 4 uint32_t values. + SkAutoSTMalloc<kMetaDataCnt + 4, uint32_t> fKey; }; /** diff --git a/include/gpu/SkGr.h b/include/gpu/SkGr.h index 17625c4e4e..591d3d88a4 100644 --- a/include/gpu/SkGr.h +++ b/include/gpu/SkGr.h @@ -65,11 +65,9 @@ static inline GrColor SkPMColorToGrColor(SkPMColor c) { } //////////////////////////////////////////////////////////////////////////////// -/** Returns a texture representing the bitmap that is compatible with the GrTextureParams. The - texture is inserted into the cache (unless the bitmap is marked volatile) and can be - retrieved again via this function. */ -GrTexture* GrRefCachedBitmapTexture(GrContext*, const SkBitmap&, const GrTextureParams&); +GrTexture* GrRefCachedBitmapTexture(GrContext*, const SkBitmap&, const GrTextureParams&); + // TODO: Move SkImageInfo2GrPixelConfig to SkGrPriv.h (requires cleanup to SkWindow its subclasses). GrPixelConfig SkImageInfo2GrPixelConfig(SkColorType, SkAlphaType, SkColorProfileType); |