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 #include "GrGLSLBlend.h" | 7 #include "GrGLSLBlend.h" |
8 #include "glsl/GrGLSLFragmentShaderBuilder.h" | 8 #include "glsl/GrGLSLFragmentShaderBuilder.h" |
9 | 9 |
10 ////////////////////////////////////////////////////////////////////////////// | 10 ////////////////////////////////////////////////////////////////////////////// |
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 fsBuilder->codeAppendf("%s = ", outColor); | 472 fsBuilder->codeAppendf("%s = ", outColor); |
473 // append src blend | 473 // append src blend |
474 bool didAppend = append_porterduff_term(fsBuilder, srcCoeff, srcColor, srcCo
lor, dstColor, | 474 bool didAppend = append_porterduff_term(fsBuilder, srcCoeff, srcColor, srcCo
lor, dstColor, |
475 false); | 475 false); |
476 // append dst blend | 476 // append dst blend |
477 if(!append_porterduff_term(fsBuilder, dstCoeff, dstColor, srcColor, dstColor
, didAppend)) { | 477 if(!append_porterduff_term(fsBuilder, dstCoeff, dstColor, srcColor, dstColor
, didAppend)) { |
478 fsBuilder->codeAppend("vec4(0, 0, 0, 0)"); | 478 fsBuilder->codeAppend("vec4(0, 0, 0, 0)"); |
479 } | 479 } |
480 fsBuilder->codeAppend(";"); | 480 fsBuilder->codeAppend(";"); |
481 } | 481 } |
482 | |
OLD | NEW |