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

Unified Diff: include/gpu/effects/GrXfermodeFragmentProcessor.h

Issue 1306163005: Added function CreateFrom2Procs() in new namespace GrXfermodeFragmentProcessor (Closed) Base URL: https://skia.googlesource.com/skia@cs3_testcreate
Patch Set: added mode <= kLastCoeffMode checks Created 5 years, 3 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/gpu/effects/GrXfermodeFragmentProcessor.h
diff --git a/include/gpu/effects/GrXfermodeFragmentProcessor.h b/include/gpu/effects/GrXfermodeFragmentProcessor.h
new file mode 100644
index 0000000000000000000000000000000000000000..81ea799201af3c7c4ad83e1631850882f7186f4a
--- /dev/null
+++ b/include/gpu/effects/GrXfermodeFragmentProcessor.h
@@ -0,0 +1,21 @@
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef GrXfermodeFragmentProcessor_DEFINED
+#define GrXfermodeFragmentProcessor_DEFINED
+
+#include "SkXfermode.h"
+
+class GrFragmentProcessor;
+
+namespace GrXfermodeFragmentProcessor {
+ const GrFragmentProcessor* CreateFrom2Procs(const GrFragmentProcessor* src,
bsalomon 2015/09/08 15:10:57 Not crazy about "Procs". AFAIK it isn't a standard
+ const GrFragmentProcessor* dst,
+ SkXfermode::Mode mode);
+};
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698