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

Side by Side Diff: src/gpu/glsl/GrGLSLFragmentProcessor.cpp

Issue 2114993002: GrFP can express distance vector field req., program builder declares variable for it (Closed) Base URL: https://skia.googlesource.com/skia@dvonbeck-bevel-api-change
Patch Set: Fixed GrPaint unintialized bool Created 4 years, 4 months 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/GrGLSLFragmentProcessor.h ('k') | src/gpu/glsl/GrGLSLFragmentShaderBuilder.h » ('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 #include "GrGLSLFragmentProcessor.h" 8 #include "GrGLSLFragmentProcessor.h"
9 #include "GrFragmentProcessor.h" 9 #include "GrFragmentProcessor.h"
10 #include "GrProcessor.h" 10 #include "GrProcessor.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 fragBuilder->codeAppendf("// Child Index %d (mangle: %s): %s\n", childIndex, 100 fragBuilder->codeAppendf("// Child Index %d (mangle: %s): %s\n", childIndex,
101 fragBuilder->getMangleString().c_str(), childProc.n ame()); 101 fragBuilder->getMangleString().c_str(), childProc.n ame());
102 EmitArgs childArgs(fragBuilder, 102 EmitArgs childArgs(fragBuilder,
103 args.fUniformHandler, 103 args.fUniformHandler,
104 args.fGLSLCaps, 104 args.fGLSLCaps,
105 childProc, 105 childProc,
106 outputColor, 106 outputColor,
107 inputColor, 107 inputColor,
108 childCoords, 108 childCoords,
109 childTexSamplers, 109 childTexSamplers,
110 childBufferSamplers); 110 childBufferSamplers,
111 args.fGpImplementsDistanceVector);
111 this->childProcessor(childIndex)->emitCode(childArgs); 112 this->childProcessor(childIndex)->emitCode(childArgs);
112 fragBuilder->codeAppend("}\n"); 113 fragBuilder->codeAppend("}\n");
113 114
114 fragBuilder->onAfterChildProcEmitCode(); 115 fragBuilder->onAfterChildProcEmitCode();
115 } 116 }
OLDNEW
« no previous file with comments | « src/gpu/glsl/GrGLSLFragmentProcessor.h ('k') | src/gpu/glsl/GrGLSLFragmentShaderBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698