aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkLocalMatrixShader.h
diff options
context:
space:
mode:
authorGravatar reed <reed@chromium.org>2015-09-07 11:10:30 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-09-07 11:10:30 -0700
commit2d126b5c45e65a67a9945afa9294038a8eb3f2c8 (patch)
tree555714ec3e75b4d444b6c140dbc3d5c929e554ab /src/core/SkLocalMatrixShader.h
parent10522ff4cfa3cba45881354768f6185fc1109119 (diff)
switch to isABitmap, deprecate SK_SUPPORT_LEGACY_SHADERBITMAPTYPE
BUG=skia: TBR= Review URL: https://codereview.chromium.org/1311963007
Diffstat (limited to 'src/core/SkLocalMatrixShader.h')
-rw-r--r--src/core/SkLocalMatrixShader.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/core/SkLocalMatrixShader.h b/src/core/SkLocalMatrixShader.h
index 9c6a526f7b..a108259461 100644
--- a/src/core/SkLocalMatrixShader.h
+++ b/src/core/SkLocalMatrixShader.h
@@ -23,11 +23,6 @@ public:
return fProxyShader->contextSize();
}
- virtual BitmapType asABitmap(SkBitmap* bitmap, SkMatrix* matrix,
- TileMode* mode) const override {
- return fProxyShader->asABitmap(bitmap, matrix, mode);
- }
-
GradientType asAGradient(GradientInfo* info) const override {
return fProxyShader->asAGradient(info);
}
@@ -58,6 +53,10 @@ protected:
void flatten(SkWriteBuffer&) const override;
Context* onCreateContext(const ContextRec&, void*) const override;
+ bool onIsABitmap(SkBitmap* bitmap, SkMatrix* matrix, TileMode* mode) const override {
+ return fProxyShader->isABitmap(bitmap, matrix, mode);
+ }
+
private:
SkAutoTUnref<SkShader> fProxyShader;