Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Unified Diff: src/utils/android/SkAndroidSDKCanvas.cpp

Issue 1287263005: change asABitmap to isABitmap on shader (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/utils/android/SkAndroidSDKCanvas.cpp
diff --git a/src/utils/android/SkAndroidSDKCanvas.cpp b/src/utils/android/SkAndroidSDKCanvas.cpp
index b05605bbf9e00ee39f6e40a9c7a0955c0019d79f..2eec95f66cf62068ecbe9ec50d28c146b952174b 100644
--- a/src/utils/android/SkAndroidSDKCanvas.cpp
+++ b/src/utils/android/SkAndroidSDKCanvas.cpp
@@ -23,7 +23,7 @@ void CheckShader(SkPaint* paint) {
return;
}
- if (shader->asABitmap(NULL, NULL, NULL) == SkShader::kDefault_BitmapType) {
+ if (shader->isABitmap()) {
return;
}
if (shader->asACompose(NULL)) {

Powered by Google App Engine
This is Rietveld 408576698