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

Side by Side Diff: src/gpu/gl/builders/GrGLProgramBuilder.cpp

Issue 586793002: Change GrGLProgramDesc header to have DoPathRendering flag instead of RequiresVertexShader (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 3 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
OLDNEW
1 /* 1 /*
2 * Copyright 2014 Google Inc. 2 * Copyright 2014 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 "gl/GrGLProgram.h" 8 #include "gl/GrGLProgram.h"
9 #include "gl/GrGLSLPrettyPrint.h" 9 #include "gl/GrGLSLPrettyPrint.h"
10 #include "gl/GrGLUniformHandle.h" 10 #include "gl/GrGLUniformHandle.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 return false; 96 return false;
97 } 97 }
98 98
99 return true; 99 return true;
100 } 100 }
101 101
102 ////////////////////////////////////////////////////////////////////////////// 102 //////////////////////////////////////////////////////////////////////////////
103 103
104 GrGLProgramBuilder::GrGLProgramBuilder(GrGpuGL* gpu, 104 GrGLProgramBuilder::GrGLProgramBuilder(GrGpuGL* gpu,
105 const GrGLProgramDesc& desc) 105 const GrGLProgramDesc& desc)
106 : fFragOnly(!desc.getHeader().fRequiresVertexShader && 106 : fFragOnly(desc.getHeader().fDoPathRendering)
107 gpu->glCaps().pathRenderingSupport() &&
108 gpu->glPathRendering()->texturingMode() == GrGLPathRendering::Fi xedFunction_TexturingMode)
109 , fTexCoordSetCnt(0) 107 , fTexCoordSetCnt(0)
110 , fProgramID(0) 108 , fProgramID(0)
111 , fFS(this, desc) 109 , fFS(this, desc)
112 , fSeparableVaryingInfos(kVarsPerBlock) 110 , fSeparableVaryingInfos(kVarsPerBlock)
113 , fDesc(desc) 111 , fDesc(desc)
114 , fGpu(gpu) 112 , fGpu(gpu)
115 , fUniforms(kVarsPerBlock) { 113 , fUniforms(kVarsPerBlock) {
116 } 114 }
117 115
118 void GrGLProgramBuilder::nameVariable(SkString* out, char prefix, const char* na me) { 116 void GrGLProgramBuilder::nameVariable(SkString* out, char prefix, const char* na me) {
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 GetProgramResourceLocation(programId, 317 GetProgramResourceLocation(programId,
320 GR_GL_FRAGMENT_INPUT, 318 GR_GL_FRAGMENT_INPUT,
321 fSeparableVaryingInfos[i].fVariab le.c_str())); 319 fSeparableVaryingInfos[i].fVariab le.c_str()));
322 fSeparableVaryingInfos[i].fLocation = location; 320 fSeparableVaryingInfos[i].fLocation = location;
323 } 321 }
324 } 322 }
325 323
326 const GrGLContextInfo& GrGLProgramBuilder::ctxInfo() const { 324 const GrGLContextInfo& GrGLProgramBuilder::ctxInfo() const {
327 return fGpu->ctxInfo(); 325 return fGpu->ctxInfo();
328 } 326 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698