diff options
author | 2015-09-09 12:58:32 -0700 | |
---|---|---|
committer | 2015-09-09 12:58:32 -0700 | |
commit | 809e5afdd95962465a51e3dbab707abf9d594fab (patch) | |
tree | 892b52003270dd52ec96d713f0ccf0874701d234 /include | |
parent | bf2988833e5a36c6b430da6fdd2cfebd0015adec (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.
BUG=skia:4182
Review URL: https://codereview.chromium.org/1306163005
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/effects/GrXfermodeFragmentProcessor.h | 21 |
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 |