OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef GrGLSLXferProcessor_DEFINED | 8 #ifndef GrGLSLXferProcessor_DEFINED |
9 #define GrGLSLXferProcessor_DEFINED | 9 #define GrGLSLXferProcessor_DEFINED |
10 | 10 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 } | 78 } |
79 | 79 |
80 /** | 80 /** |
81 * Called by emitCode() when the XP will perform a dst read. This method onl
y needs to supply | 81 * Called by emitCode() when the XP will perform a dst read. This method onl
y needs to supply |
82 * the blending logic. The base class applies coverage. A subclass only need
s to implement this | 82 * the blending logic. The base class applies coverage. A subclass only need
s to implement this |
83 * method if it can construct a GrXferProcessor that reads the dst color. | 83 * method if it can construct a GrXferProcessor that reads the dst color. |
84 */ | 84 */ |
85 virtual void emitBlendCodeForDstRead(GrGLSLXPBuilder*, | 85 virtual void emitBlendCodeForDstRead(GrGLSLXPBuilder*, |
86 GrGLSLXPFragmentBuilder*, | 86 GrGLSLXPFragmentBuilder*, |
87 const char* srcColor, | 87 const char* srcColor, |
| 88 const char* srcCoverage, |
88 const char* dstColor, | 89 const char* dstColor, |
89 const char* outColor, | 90 const char* outColor, |
| 91 const char* outColorSecondary, |
90 const GrXferProcessor&) { | 92 const GrXferProcessor&) { |
91 SkFAIL("emitBlendCodeForDstRead not implemented."); | 93 SkFAIL("emitBlendCodeForDstRead not implemented."); |
92 } | 94 } |
93 | 95 |
94 virtual void onSetData(const GrGLSLProgramDataManager&, const GrXferProcesso
r&) = 0; | 96 virtual void onSetData(const GrGLSLProgramDataManager&, const GrXferProcesso
r&) = 0; |
95 | 97 |
96 GrGLSLProgramDataManager::UniformHandle fDstTopLeftUni; | 98 GrGLSLProgramDataManager::UniformHandle fDstTopLeftUni; |
97 GrGLSLProgramDataManager::UniformHandle fDstScaleUni; | 99 GrGLSLProgramDataManager::UniformHandle fDstScaleUni; |
98 }; | 100 }; |
99 #endif | 101 #endif |
OLD | NEW |