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

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

Issue 1276383003: fixup precision with configurable atlas (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add asserts Created 5 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/effects/GrDistanceFieldGeoProc.cpp ('k') | no next file » | 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 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 #ifndef GrGLProgramBuilder_DEFINED 8 #ifndef GrGLProgramBuilder_DEFINED
9 #define GrGLProgramBuilder_DEFINED 9 #define GrGLProgramBuilder_DEFINED
10 10
11 #include "GrGLFragmentShaderBuilder.h" 11 #include "GrGLFragmentShaderBuilder.h"
12 #include "GrGLGeometryShaderBuilder.h" 12 #include "GrGLGeometryShaderBuilder.h"
13 #include "GrGLVertexShaderBuilder.h" 13 #include "GrGLVertexShaderBuilder.h"
14 #include "../GrGLProgramDataManager.h" 14 #include "../GrGLProgramDataManager.h"
15 #include "../GrGLPathProgramDataManager.h" 15 #include "../GrGLPathProgramDataManager.h"
16 #include "../GrGLUniformHandle.h" 16 #include "../GrGLUniformHandle.h"
17 #include "../GrGLPrimitiveProcessor.h" 17 #include "../GrGLPrimitiveProcessor.h"
18 #include "../GrGLXferProcessor.h" 18 #include "../GrGLXferProcessor.h"
19 #include "../../GrPendingFragmentStage.h" 19 #include "../../GrPendingFragmentStage.h"
20 #include "../../GrPipeline.h" 20 #include "../../GrPipeline.h"
21 21
22 // Enough precision to represent 1 / 2048 accurately in printf
23 #define GR_SIGNIFICANT_POW2_DECIMAL_DIG 11
24
22 /* 25 /*
23 * This is the base class for a series of interfaces. This base class *MUST* re main abstract with 26 * This is the base class for a series of interfaces. This base class *MUST* re main abstract with
24 * NO data members because it is used in multiple interface inheritance. 27 * NO data members because it is used in multiple interface inheritance.
25 * Heirarchy: 28 * Heirarchy:
26 * GrGLUniformBuilder 29 * GrGLUniformBuilder
27 * / \ 30 * / \
28 * GrGLFPBuilder GrGLGPBuilder 31 * GrGLFPBuilder GrGLGPBuilder
29 * \ / 32 * \ /
30 * GrGLProgramBuilder(internal use only) 33 * GrGLProgramBuilder(internal use only)
31 */ 34 */
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 GrGLPrimitiveProcessor::TransformsIn fCoordTransforms; 400 GrGLPrimitiveProcessor::TransformsIn fCoordTransforms;
398 GrGLPrimitiveProcessor::TransformsOut fOutCoords; 401 GrGLPrimitiveProcessor::TransformsOut fOutCoords;
399 SkTArray<UniformHandle> fSamplerUniforms; 402 SkTArray<UniformHandle> fSamplerUniforms;
400 403
401 friend class GrGLShaderBuilder; 404 friend class GrGLShaderBuilder;
402 friend class GrGLVertexBuilder; 405 friend class GrGLVertexBuilder;
403 friend class GrGLFragmentShaderBuilder; 406 friend class GrGLFragmentShaderBuilder;
404 friend class GrGLGeometryBuilder; 407 friend class GrGLGeometryBuilder;
405 }; 408 };
406 #endif 409 #endif
OLDNEW
« no previous file with comments | « src/gpu/effects/GrDistanceFieldGeoProc.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698