Index: src/gpu/GrImageIDTextureAdjuster.cpp |
diff --git a/src/gpu/GrImageIDTextureAdjuster.cpp b/src/gpu/GrImageIDTextureAdjuster.cpp |
index 2bfa21c7293c814f0004feba3cf61bb65b292beb..f9aaae1282152fe69a37343e179592f52c1b00a3 100644 |
--- a/src/gpu/GrImageIDTextureAdjuster.cpp |
+++ b/src/gpu/GrImageIDTextureAdjuster.cpp |
@@ -17,17 +17,6 @@ |
static bool bmp_is_alpha_only(const SkBitmap& bm) { return kAlpha_8_SkColorType == bm.colorType(); } |
-// By construction this texture adjuster always represents an entire SkImage, so use the |
-// image's dimensions for the key's rectangle. |
-GrImageTextureAdjuster::GrImageTextureAdjuster(const SkImage_Base* img) |
- : GrTextureAdjuster(img->peekTexture(), SkIRect::MakeSize(img->dimensions()), img->uniqueID(), |
- img->onImageInfo().colorSpace()) |
-{ |
- SkASSERT(img->peekTexture()); |
-} |
- |
-////////////////////////////////////////////////////////////////////////////// |
- |
GrBitmapTextureMaker::GrBitmapTextureMaker(GrContext* context, const SkBitmap& bitmap) |
: INHERITED(context, bitmap.width(), bitmap.height(), bmp_is_alpha_only(bitmap)) |
, fBitmap(bitmap) |