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

Unified Diff: include/client/android/SkPixelXorXfermode.h

Issue 1853103005: remove avoid and pixelxor xfermodes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update factory counts Created 4 years, 8 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 | « include/client/android/SkAvoidXfermode.h ('k') | src/effects/SkAvoidXfermode.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/client/android/SkPixelXorXfermode.h
diff --git a/include/client/android/SkPixelXorXfermode.h b/include/client/android/SkPixelXorXfermode.h
deleted file mode 100644
index b6fd97992698fcb9c6f1029a4b6a65be45f2484c..0000000000000000000000000000000000000000
--- a/include/client/android/SkPixelXorXfermode.h
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * Copyright 2007 The Android Open Source Project
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#ifndef SkPixelXorXfermode_DEFINED
-#define SkPixelXorXfermode_DEFINED
-
-#include "SkXfermode.h"
-
-/** SkPixelXorXfermode implements a simple pixel xor (op ^ src ^ dst).
- This transformation does not follow premultiplied conventions, therefore
- this proc *always* returns an opaque color (alpha == 255). Thus it is
- not really usefull for operating on blended colors.
-*/
-class SK_API SkPixelXorXfermode : public SkXfermode {
-public:
- static sk_sp<SkXfermode> Make(SkColor opColor) {
- return sk_sp<SkXfermode>(new SkPixelXorXfermode(opColor));
- }
-#ifdef SK_SUPPORT_LEGACY_XFERMODE_PTR
- static SkXfermode* Create(SkColor opColor) {
- return Make(opColor).release();
- }
-#endif
-
-#if SK_SUPPORT_GPU
- const GrFragmentProcessor* getFragmentProcessorForImageFilter(
- const GrFragmentProcessor* dst) const override;
- GrXPFactory* asXPFactory() const override;
-#endif
-
- SK_TO_STRING_OVERRIDE()
- SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkPixelXorXfermode)
-
-protected:
- void flatten(SkWriteBuffer&) const override;
- SkPMColor xferColor(SkPMColor src, SkPMColor dst) const override;
-
-private:
- explicit SkPixelXorXfermode(SkColor opColor) {
- fOpColor = SkPreMultiplyColor(opColor | 0xFF000000);
- }
-
- SkPMColor fOpColor;
-
- typedef SkXfermode INHERITED;
-};
-
-#endif
« no previous file with comments | « include/client/android/SkAvoidXfermode.h ('k') | src/effects/SkAvoidXfermode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698