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

Unified Diff: include/effects/SkPixelXorXfermode.h

Issue 1631873002: Add gpu backend for SkPixelXorXfermode (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: And fix case where the srcColor is null Created 4 years, 11 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 | « gm/pixelxorxfermode.cpp ('k') | src/effects/SkPixelXorXfermode.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/effects/SkPixelXorXfermode.h
diff --git a/include/effects/SkPixelXorXfermode.h b/include/effects/SkPixelXorXfermode.h
index 568c322a5d2efae9f30f085be59e182ef430e283..b6a160b581c5043480ca44287a9a46669936d69f 100644
--- a/include/effects/SkPixelXorXfermode.h
+++ b/include/effects/SkPixelXorXfermode.h
@@ -17,7 +17,16 @@
*/
class SK_API SkPixelXorXfermode : public SkXfermode {
public:
- static SkXfermode* Create(SkColor opColor) { return new SkPixelXorXfermode(opColor); }
+ static SkXfermode* Create(SkColor opColor) {
+ return new SkPixelXorXfermode(opColor);
+ }
+
+#if SK_SUPPORT_GPU
+ bool asFragmentProcessor(const GrFragmentProcessor** output,
+ const GrFragmentProcessor* dst) const override;
+
+ bool asXPFactory(GrXPFactory**) const override;
+#endif
SK_TO_STRING_OVERRIDE()
SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkPixelXorXfermode)
« no previous file with comments | « gm/pixelxorxfermode.cpp ('k') | src/effects/SkPixelXorXfermode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698