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

Side by Side Diff: src/gpu/gl/GrGLProgramDesc.h

Issue 491673002: Initial refactor of shaderbuilder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 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/gl/GrGLProgramDataManager.cpp ('k') | src/gpu/gl/GrGLProgramDesc.cpp » ('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 2013 Google Inc. 2 * Copyright 2013 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 #ifndef GrGLProgramDesc_DEFINED 8 #ifndef GrGLProgramDesc_DEFINED
9 #define GrGLProgramDesc_DEFINED 9 #define GrGLProgramDesc_DEFINED
10 10
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 kPreAllocSize = kEffectKeyOffsetsAndLengthOffset + 245 kPreAllocSize = kEffectKeyOffsetsAndLengthOffset +
246 kMaxPreallocEffects * sizeof(uint32_t) * kIntsPerEffect, 246 kMaxPreallocEffects * sizeof(uint32_t) * kIntsPerEffect,
247 }; 247 };
248 248
249 SkSTArray<kPreAllocSize, uint8_t, true> fKey; 249 SkSTArray<kPreAllocSize, uint8_t, true> fKey;
250 250
251 // GrGLProgram and GrGLShaderBuilder read the private fields to generate cod e. TODO: Split out 251 // GrGLProgram and GrGLShaderBuilder read the private fields to generate cod e. TODO: Split out
252 // part of GrGLShaderBuilder that is used by effects so that this header doe sn't need to be 252 // part of GrGLShaderBuilder that is used by effects so that this header doe sn't need to be
253 // visible to GrGLEffects. Then make public accessors as necessary and remov e friends. 253 // visible to GrGLEffects. Then make public accessors as necessary and remov e friends.
254 friend class GrGLProgram; 254 friend class GrGLProgram;
255 friend class GrGLShaderBuilder; 255 friend class GrGLProgramBuilder;
256 friend class GrGLFullShaderBuilder; 256 friend class GrGLFullProgramBuilder;
257 friend class GrGLFragmentOnlyShaderBuilder; 257 friend class GrGLFragmentOnlyProgramBuilder;
258 friend class GrGLVertexShaderBuilder;
259 friend class GrGLFragmentShaderBuilder;
260 friend class GrGLGeometryShaderBuilder;
258 }; 261 };
259 262
260 #endif 263 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLProgramDataManager.cpp ('k') | src/gpu/gl/GrGLProgramDesc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698