Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(292)

Unified Diff: src/gpu/SkGr.cpp

Issue 1376603006: remove unused helper function (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/gpu/SkGr.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/SkGr.cpp
diff --git a/src/gpu/SkGr.cpp b/src/gpu/SkGr.cpp
index 2b6c79f0f34cbcb2d9459dd682ad063d1f983e25..7fe8fe188bbbf17adf6ca7388835e34644c14c82 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)
« no previous file with comments | « include/gpu/SkGr.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698