| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 #include "SkXfermode.h" | 10 #include "SkXfermode.h" |
| (...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 776 | 776 |
| 777 ////////////////////////////////////////////////////////////////////////////// | 777 ////////////////////////////////////////////////////////////////////////////// |
| 778 | 778 |
| 779 #if SK_SUPPORT_GPU | 779 #if SK_SUPPORT_GPU |
| 780 | 780 |
| 781 #include "GrEffect.h" | 781 #include "GrEffect.h" |
| 782 #include "GrCoordTransform.h" | 782 #include "GrCoordTransform.h" |
| 783 #include "GrEffectUnitTest.h" | 783 #include "GrEffectUnitTest.h" |
| 784 #include "GrTBackendEffectFactory.h" | 784 #include "GrTBackendEffectFactory.h" |
| 785 #include "gl/GrGLEffect.h" | 785 #include "gl/GrGLEffect.h" |
| 786 #include "gl/GrGLShaderBuilder.h" |
| 786 | 787 |
| 787 /** | 788 /** |
| 788 * GrEffect that implements the all the separable xfer modes that cannot be expr
essed as Coeffs. | 789 * GrEffect that implements the all the separable xfer modes that cannot be expr
essed as Coeffs. |
| 789 */ | 790 */ |
| 790 class XferEffect : public GrEffect { | 791 class XferEffect : public GrEffect { |
| 791 public: | 792 public: |
| 792 static bool IsSupportedMode(SkXfermode::Mode mode) { | 793 static bool IsSupportedMode(SkXfermode::Mode mode) { |
| 793 return mode > SkXfermode::kLastCoeffMode && mode <= SkXfermode::kLastMod
e; | 794 return mode > SkXfermode::kLastCoeffMode && mode <= SkXfermode::kLastMod
e; |
| 794 } | 795 } |
| 795 | 796 |
| (...skipping 1157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1953 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSrcXfermode) | 1954 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSrcXfermode) |
| 1954 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstInXfermode) | 1955 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstInXfermode) |
| 1955 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstOutXfermode) | 1956 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstOutXfermode) |
| 1956 #if !SK_ARM_NEON_IS_NONE | 1957 #if !SK_ARM_NEON_IS_NONE |
| 1957 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkNEONProcCoeffXfermode) | 1958 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkNEONProcCoeffXfermode) |
| 1958 #endif | 1959 #endif |
| 1959 #if defined(SK_CPU_X86) && !defined(SK_BUILD_FOR_IOS) | 1960 #if defined(SK_CPU_X86) && !defined(SK_BUILD_FOR_IOS) |
| 1960 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSSE2ProcCoeffXfermode) | 1961 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSSE2ProcCoeffXfermode) |
| 1961 #endif | 1962 #endif |
| 1962 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END | 1963 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END |
| OLD | NEW |