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

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

Issue 1490283004: Create GLSLUniformHandler class for gpu backend (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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
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 "glsl/GrGLSLProgramBuilder.h" 8 #include "glsl/GrGLSLProgramBuilder.h"
9 9
10 const int GrGLSLProgramBuilder::kVarsPerBlock = 8; 10 const int GrGLSLProgramBuilder::kVarsPerBlock = 8;
(...skipping 16 matching lines...) Expand all
27 if (out->endsWith('_')) { 27 if (out->endsWith('_')) {
28 // Names containing "__" are reserved. 28 // Names containing "__" are reserved.
29 out->append("x"); 29 out->append("x");
30 } 30 }
31 out->appendf("_Stage%d%s", fStageIndex, fFS.getMangleString().c_str()); 31 out->appendf("_Stage%d%s", fStageIndex, fFS.getMangleString().c_str());
32 } 32 }
33 } 33 }
34 34
35 void GrGLSLProgramBuilder::appendUniformDecls(ShaderVisibility visibility, 35 void GrGLSLProgramBuilder::appendUniformDecls(ShaderVisibility visibility,
36 SkString* out) const { 36 SkString* out) const {
37 this->onAppendUniformDecls(visibility, out); 37 this->uniformHandler()->appendUniformDecls(visibility, out);
38 } 38 }
39 39
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698