diff options
author | reed <reed@google.com> | 2015-09-29 18:27:59 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-09-29 18:27:59 -0700 |
commit | b39abc4d7661733edeaad379dddac75defe67dd4 (patch) | |
tree | 9986f652d70d6808a07a9ec04d3ef6a41d573c4d /src | |
parent | e4c17356b6c819df8effb29dfb4bb903520b8c2b (diff) |
remove unused helper function
BUG=skia:
TBR=
Review URL: https://codereview.chromium.org/1376603006
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) |