Index: src/image/SkImage_Raster.cpp |
diff --git a/src/image/SkImage_Raster.cpp b/src/image/SkImage_Raster.cpp |
index 892183a7c7a5166125b29bee8e4a268be93e0ada..a67128a6a3e800e7423968e0de8c6162b4f9cae7 100644 |
--- a/src/image/SkImage_Raster.cpp |
+++ b/src/image/SkImage_Raster.cpp |
@@ -74,6 +74,10 @@ public: |
SkImage_Raster(const SkImageInfo&, sk_sp<SkData>, size_t rb, SkColorTable*); |
virtual ~SkImage_Raster(); |
+ SkImageInfo onImageInfo() const override { |
+ return fBitmap.info(); |
+ } |
+ |
bool onReadPixels(const SkImageInfo&, void*, size_t, int srcX, int srcY, CachingHint) const override; |
bool onPeekPixels(SkPixmap*) const override; |
SkData* onRefEncoded(GrContext*) const override; |
@@ -178,7 +182,7 @@ GrTexture* SkImage_Raster::asTextureRef(GrContext* ctx, const GrTextureParams& p |
return GrRefCachedBitmapTexture(ctx, fBitmap, params); |
#endif |
- |
+ |
return nullptr; |
} |