diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gpu/SkGr.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/gpu/SkGr.cpp b/src/gpu/SkGr.cpp index 2b6c79f0f3..7fe8fe188b 100644 --- a/src/gpu/SkGr.cpp +++ b/src/gpu/SkGr.cpp @@ -520,15 +520,6 @@ bool GrIsImageInCache(const GrContext* ctx, uint32_t imageID, const SkIRect& sub (SkGrStretch::kNone_Type == stretch.fType) ? key : stretchedKey); } -bool GrIsBitmapInCache(const GrContext* ctx, const SkBitmap& bitmap, - const GrTextureParams* params) { - if (bitmap.isVolatile()) { - return false; // we don't cache volatile bitmaps. - } - return GrIsImageInCache(ctx, bitmap.getGenerationID(), bitmap.getSubset(), bitmap.getTexture(), - params); -} - class Bitmap_GrTextureMaker : public GrTextureMaker { public: Bitmap_GrTextureMaker(const SkBitmap& bitmap) |