diff options
author | 2015-09-18 08:26:25 -0700 | |
---|---|---|
committer | 2015-09-18 08:26:26 -0700 | |
commit | 0b93e3149d2cb30860c51f9f3204ae811d9a97ca (patch) | |
tree | 0b25b7b300a6683636c560f9be74c926761d68fc /src/image/SkImage_Gpu.h | |
parent | 3b0d532df72db806c255cad98538fcbb4d9678a8 (diff) |
add ImageShader, sharing code with its Bitmap cousin
This is done by having abstracted the BitmapShaderContext to take a BitmapProvider, instead of just a bitmap. This allows us to share all of that code between SkBitmap and SkImage, since both are valid providers.
It also means that we can simplify SkImage_Base to not need a virtual for onNewShader, since ALL images can uniformly be turned into a shader now.
BUG=skia:
Review URL: https://codereview.chromium.org/1342113002
Diffstat (limited to 'src/image/SkImage_Gpu.h')
-rw-r--r-- | src/image/SkImage_Gpu.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/image/SkImage_Gpu.h b/src/image/SkImage_Gpu.h index d168fb6853..cc576c499c 100644 --- a/src/image/SkImage_Gpu.h +++ b/src/image/SkImage_Gpu.h @@ -40,9 +40,6 @@ public: GrTexture* asTextureRef(GrContext* ctx, SkImageUsageType usage) const override; GrTexture* peekTexture() const override { return fTexture; } - SkShader* onNewShader(SkShader::TileMode, - SkShader::TileMode, - const SkMatrix* localMatrix) const override; bool isOpaque() const override; SkSurface* onNewSurface(const SkImageInfo&, const SkSurfaceProps&) const override; bool onReadPixels(const SkImageInfo&, void* dstPixels, size_t dstRowBytes, |