aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrImageIDTextureAdjuster.cpp
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2016-08-17 11:12:33 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-08-17 11:12:33 -0700
commit2d5b7147032e3806b5895667a899440119707c2d (patch)
tree001be10772ac20d1f28861776cbf81aa2ce6fcc5 /src/gpu/GrImageIDTextureAdjuster.cpp
parent4f81caf16995679adc05131823e209bf12844d3c (diff)
pin as texture api
Diffstat (limited to 'src/gpu/GrImageIDTextureAdjuster.cpp')
-rw-r--r--src/gpu/GrImageIDTextureAdjuster.cpp11
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)