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

Side by Side Diff: src/gpu/gl/GrGLFragmentProcessor.cpp

Issue 1428543003: Create GLSL base class for ProgramDataManager (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add space Created 5 years, 1 month 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/gl/GrGLFragmentProcessor.h ('k') | src/gpu/gl/GrGLGeometryProcessor.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 "GrGLFragmentProcessor.h" 8 #include "GrGLFragmentProcessor.h"
9 #include "GrFragmentProcessor.h" 9 #include "GrFragmentProcessor.h"
10 #include "builders/GrGLFragmentShaderBuilder.h" 10 #include "builders/GrGLFragmentShaderBuilder.h"
11 #include "builders/GrGLProgramBuilder.h" 11 #include "builders/GrGLProgramBuilder.h"
12 12
13 void GrGLFragmentProcessor::setData(const GrGLProgramDataManager& pdman, 13 void GrGLFragmentProcessor::setData(const GrGLSLProgramDataManager& pdman,
14 const GrFragmentProcessor& processor) { 14 const GrFragmentProcessor& processor) {
15 this->onSetData(pdman, processor); 15 this->onSetData(pdman, processor);
16 SkASSERT(fChildProcessors.count() == processor.numChildProcessors()); 16 SkASSERT(fChildProcessors.count() == processor.numChildProcessors());
17 for (int i = 0; i < fChildProcessors.count(); ++i) { 17 for (int i = 0; i < fChildProcessors.count(); ++i) {
18 fChildProcessors[i]->setData(pdman, processor.childProcessor(i)); 18 fChildProcessors[i]->setData(pdman, processor.childProcessor(i));
19 } 19 }
20 } 20 }
21 21
22 void GrGLFragmentProcessor::emitChild(int childIndex, const char* inputColor, Em itArgs& args) { 22 void GrGLFragmentProcessor::emitChild(int childIndex, const char* inputColor, Em itArgs& args) {
23 this->internalEmitChild(childIndex, inputColor, args.fOutputColor, args); 23 this->internalEmitChild(childIndex, inputColor, args.fOutputColor, args);
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 childProc, 96 childProc,
97 outputColor, 97 outputColor,
98 inputColor, 98 inputColor,
99 childCoords, 99 childCoords,
100 childSamplers); 100 childSamplers);
101 this->childProcessor(childIndex)->emitCode(childArgs); 101 this->childProcessor(childIndex)->emitCode(childArgs);
102 fb->codeAppend("}\n"); 102 fb->codeAppend("}\n");
103 103
104 fb->onAfterChildProcEmitCode(); 104 fb->onAfterChildProcEmitCode();
105 } 105 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLFragmentProcessor.h ('k') | src/gpu/gl/GrGLGeometryProcessor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698