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

Unified Diff: include/core/SkCanvas.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: include/core/SkCanvas.h
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h
index b77e8a7689ffd04426651c394528d439b80f114e..59f97e9665f3b6428fba8ffb92137e2a5cf8c553 100644
--- a/include/core/SkCanvas.h
+++ b/include/core/SkCanvas.h
@@ -1053,6 +1053,14 @@ public:
const SkColor colors[], SkXfermode* xmode,
const uint16_t indices[], int indexCount,
const SkPaint& paint);
+ void drawVertices(VertexMode vmode, int vertexCount,
+ const SkPoint vertices[], const SkPoint texs[],
+ const SkColor colors[], sk_sp<SkXfermode>& xmode,
+ const uint16_t indices[], int indexCount,
+ const SkPaint& paint) {
+ this->drawVertices(vmode, vertexCount, vertices, texs, colors, xmode.get(),
+ indices, indexCount, paint);
+ }
/**
Draw a cubic coons patch
@@ -1069,6 +1077,10 @@ public:
*/
void drawPatch(const SkPoint cubics[12], const SkColor colors[4],
const SkPoint texCoords[4], SkXfermode* xmode, const SkPaint& paint);
+ void drawPatch(const SkPoint cubics[12], const SkColor colors[4], const SkPoint texCoords[4],
+ const sk_sp<SkXfermode>& xmode, const SkPaint& paint) {
+ this->drawPatch(cubics, colors, texCoords, xmode.get(), paint);
+ }
/**
* Draw a set of sprites from the atlas. Each is specified by a tex rectangle in the

Powered by Google App Engine
This is Rietveld 408576698