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

Unified Diff: src/core/SkBlitter.cpp

Issue 1855733002: change flattenable factory to return sk_sp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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
« no previous file with comments | « src/core/SkBitmapProcShader.cpp ('k') | src/core/SkColorFilter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkBlitter.cpp
diff --git a/src/core/SkBlitter.cpp b/src/core/SkBlitter.cpp
index d8e81d59b8018be1395b28b640d2236e64f08ad1..8f0031cd46d4ec39ea9de6094d4b52ee2081e77a 100644
--- a/src/core/SkBlitter.cpp
+++ b/src/core/SkBlitter.cpp
@@ -730,8 +730,8 @@ private:
typedef SkShader INHERITED;
};
-SkFlattenable* Sk3DShader::CreateProc(SkReadBuffer& buffer) {
- return new Sk3DShader(buffer.readShader());
+sk_sp<SkFlattenable> Sk3DShader::CreateProc(SkReadBuffer& buffer) {
+ return sk_make_sp<Sk3DShader>(buffer.readShader());
}
class Sk3DBlitter : public SkBlitter {
@@ -745,8 +745,7 @@ public:
fProxy->blitH(x, y, width);
}
- virtual void blitAntiH(int x, int y, const SkAlpha antialias[],
- const int16_t runs[]) override {
+ void blitAntiH(int x, int y, const SkAlpha antialias[], const int16_t runs[]) override {
fProxy->blitAntiH(x, y, antialias, runs);
}
« no previous file with comments | « src/core/SkBitmapProcShader.cpp ('k') | src/core/SkColorFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698