aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2015-09-29 18:27:59 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-09-29 18:27:59 -0700
commitb39abc4d7661733edeaad379dddac75defe67dd4 (patch)
tree9986f652d70d6808a07a9ec04d3ef6a41d573c4d /src
parente4c17356b6c819df8effb29dfb4bb903520b8c2b (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.cpp9
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)