From 2d5b7147032e3806b5895667a899440119707c2d Mon Sep 17 00:00:00 2001 From: reed Date: Wed, 17 Aug 2016 11:12:33 -0700 Subject: pin as texture api BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2241353002 Review-Url: https://codereview.chromium.org/2241353002 --- src/gpu/GrImageIDTextureAdjuster.cpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/gpu/GrImageIDTextureAdjuster.cpp') diff --git a/src/gpu/GrImageIDTextureAdjuster.cpp b/src/gpu/GrImageIDTextureAdjuster.cpp index 2bfa21c729..f9aaae1282 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) -- cgit v1.2.3