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

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

Issue 1417993004: Add version string and force highp NDS transfrom to GLSLCaps (Closed) Base URL: https://skia.googlesource.com/skia.git@renameShaderVar
Patch Set: Fix glslInit Created 5 years, 2 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/GrGLCaps.cpp ('k') | src/gpu/gl/GrGLGLSL.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 2011 Google Inc. 2 * Copyright 2011 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 GrGLInitGLSL_DEFINED 8 #ifndef GrGLInitGLSL_DEFINED
9 #define GrGLInitGLSL_DEFINED 9 #define GrGLInitGLSL_DEFINED
10 10
11 #include "gl/GrGLInterface.h" 11 #include "gl/GrGLInterface.h"
12 #include "glsl/GrGLSL.h" 12 #include "glsl/GrGLSL.h"
13 #include "GrColor.h" 13 #include "GrColor.h"
14 #include "GrTypesPriv.h" 14 #include "GrTypesPriv.h"
15 #include "SkString.h" 15 #include "SkString.h"
16 16
17 class GrGLContextInfo; 17 class GrGLContextInfo;
18 18
19 /** 19 /**
20 * Gets the most recent GLSL Generation compatible with the OpenGL context. 20 * Gets the most recent GLSL Generation compatible with the OpenGL context.
21 */ 21 */
22 bool GrGLGetGLSLGeneration(const GrGLInterface* gl, GrGLSLGeneration* generation ); 22 bool GrGLGetGLSLGeneration(const GrGLInterface* gl, GrGLSLGeneration* generation );
23 23
24 /** 24 /**
25 * Returns a string to include at the beginning of a shader to declare the GLSL
26 * version.
27 */
28 const char* GrGLGetGLSLVersionDecl(const GrGLContextInfo&);
29
30 /**
31 * Adds a line of GLSL code to declare the default precision for float types. 25 * Adds a line of GLSL code to declare the default precision for float types.
32 */ 26 */
33 void GrGLAppendGLSLDefaultFloatPrecisionDeclaration(GrSLPrecision, GrGLStandard, SkString* out); 27 void GrGLAppendGLSLDefaultFloatPrecisionDeclaration(GrSLPrecision, GrGLStandard, SkString* out);
34 28
35 29
36 #endif 30 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLCaps.cpp ('k') | src/gpu/gl/GrGLGLSL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698