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

Unified Diff: src/animator/SkDrawShader.cpp

Issue 1772463002: use Make instead of Create to return a shared shader (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: partial update of skia call-sites Created 4 years, 9 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/animator/SkDrawShader.cpp
diff --git a/src/animator/SkDrawShader.cpp b/src/animator/SkDrawShader.cpp
index 9e3becc48b94cc23947aac7b25fdcc504340bb6c..2868b9f4efe7c76c891e338eede568fb1eac8a00 100644
--- a/src/animator/SkDrawShader.cpp
+++ b/src/animator/SkDrawShader.cpp
@@ -71,8 +71,8 @@ SkShader* SkDrawBitmapShader::getShader() {
//
// oops, bitmapshader no longer takes filterBitmap, but deduces it at
// draw-time from the paint
- return SkShader::CreateBitmapShader(image->fBitmap,
+ return SkShader::MakeBitmapShader(image->fBitmap,
(SkShader::TileMode) tileMode,
(SkShader::TileMode) tileMode,
- getMatrix());
+ getMatrix()).release();
}

Powered by Google App Engine
This is Rietveld 408576698