diff options
author | 2016-08-17 11:12:33 -0700 | |
---|---|---|
committer | 2016-08-17 11:12:33 -0700 | |
commit | 2d5b7147032e3806b5895667a899440119707c2d (patch) | |
tree | 001be10772ac20d1f28861776cbf81aa2ce6fcc5 /src/gpu/GrImageIDTextureAdjuster.cpp | |
parent | 4f81caf16995679adc05131823e209bf12844d3c (diff) |
pin as texture api
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2241353002
Review-Url: https://codereview.chromium.org/2241353002
Diffstat (limited to 'src/gpu/GrImageIDTextureAdjuster.cpp')
-rw-r--r-- | src/gpu/GrImageIDTextureAdjuster.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
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) |