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

Side by Side Diff: src/gpu/glsl/GrGLSLXferProcessor.h

Issue 1488213002: Add in shader blending for CoverageSetOp XP (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebased Created 5 years 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 unified diff | Download patch
« no previous file with comments | « src/gpu/glsl/GrGLSLBlend.cpp ('k') | src/gpu/glsl/GrGLSLXferProcessor.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « src/gpu/glsl/GrGLSLBlend.cpp ('k') | src/gpu/glsl/GrGLSLXferProcessor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698