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

Unified Diff: src/core/SkReadBuffer.h

Issue 1832223002: switch xfermodes over to sk_sp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase 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/core/SkReadBuffer.h
diff --git a/src/core/SkReadBuffer.h b/src/core/SkReadBuffer.h
index 46f6b818daf5b6149308c697d82cdbc9e6b9a762..960f2a36878c2b4181191788e3f83222d701fb99 100644
--- a/src/core/SkReadBuffer.h
+++ b/src/core/SkReadBuffer.h
@@ -145,7 +145,9 @@ public:
return sk_sp<SkRasterizer>(this->readFlattenable<SkRasterizer>());
}
sk_sp<SkShader> readShader() { return sk_sp<SkShader>(this->readFlattenable<SkShader>()); }
- SkXfermode* readXfermode() { return this->readFlattenable<SkXfermode>(); }
+ sk_sp<SkXfermode> readXfermode() {
+ return sk_sp<SkXfermode>(this->readFlattenable<SkXfermode>());
+ }
/**
* Like readFlattenable() but explicitly just skips the data that was written for the

Powered by Google App Engine
This is Rietveld 408576698