aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar wangyix <wangyix@google.com>2015-09-09 12:58:32 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-09-09 12:58:32 -0700
commit809e5afdd95962465a51e3dbab707abf9d594fab (patch)
tree892b52003270dd52ec96d713f0ccf0874701d234 /include
parentbf2988833e5a36c6b430da6fdd2cfebd0015adec (diff)
Brian requested a new namespace for factories that create fragment processors that combine 2 things with a xfermode. This way, we can change the implementation of these factories in the future to not use GrComposeEffect if desired.
Diffstat (limited to 'include')
-rw-r--r--include/gpu/effects/GrXfermodeFragmentProcessor.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/gpu/effects/GrXfermodeFragmentProcessor.h b/include/gpu/effects/GrXfermodeFragmentProcessor.h
new file mode 100644
index 0000000000..d93b400b8b
--- /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* CreateFromTwoProcessors(const GrFragmentProcessor* src,
+ const GrFragmentProcessor* dst,
+ SkXfermode::Mode mode);
+};
+
+#endif