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

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

Issue 1160923007: Disable dual source blending support when GLSL version is too old (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: string Created 5 years, 6 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/GrGLSL.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 GrGLSL_DEFINED 8 #ifndef GrGLSL_DEFINED
9 #define GrGLSL_DEFINED 9 #define GrGLSL_DEFINED
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 * ES GLSL 3.10 only TODO Make GLSLCap objects to make this more granular 43 * ES GLSL 3.10 only TODO Make GLSLCap objects to make this more granular
44 */ 44 */
45 k310es_GrGLSLGeneration, 45 k310es_GrGLSLGeneration,
46 }; 46 };
47 47
48 /** 48 /**
49 * Gets the most recent GLSL Generation compatible with the OpenGL context. 49 * Gets the most recent GLSL Generation compatible with the OpenGL context.
50 */ 50 */
51 bool GrGetGLSLGeneration(const GrGLInterface* gl, GrGLSLGeneration* generation); 51 bool GrGetGLSLGeneration(const GrGLInterface* gl, GrGLSLGeneration* generation);
52 52
53 bool GrGLSLSupportsNamedFragmentShaderOutputs(GrGLSLGeneration);
54
53 /** 55 /**
54 * Returns a string to include at the beginning of a shader to declare the GLSL 56 * Returns a string to include at the beginning of a shader to declare the GLSL
55 * version. 57 * version.
56 */ 58 */
57 const char* GrGetGLSLVersionDecl(const GrGLContextInfo&); 59 const char* GrGetGLSLVersionDecl(const GrGLContextInfo&);
58 60
59 /** 61 /**
60 * Adds a line of GLSL code to declare the default precision for float types. 62 * Adds a line of GLSL code to declare the default precision for float types.
61 */ 63 */
62 void GrGLSLAppendDefaultFloatPrecisionDeclaration(GrSLPrecision, GrGLStandard, S kString* out); 64 void GrGLSLAppendDefaultFloatPrecisionDeclaration(GrSLPrecision, GrGLStandard, S kString* out);
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 338
337 /** 339 /**
338 * Does an inplace mul, *=, of vec4VarName by mulFactor. 340 * Does an inplace mul, *=, of vec4VarName by mulFactor.
339 * A semicolon is added after the assignment. 341 * A semicolon is added after the assignment.
340 */ 342 */
341 void GrGLSLMulVarBy4f(SkString* outAppend, const char* vec4VarName, const GrGLSL Expr4& mulFactor); 343 void GrGLSLMulVarBy4f(SkString* outAppend, const char* vec4VarName, const GrGLSL Expr4& mulFactor);
342 344
343 #include "GrGLSL_impl.h" 345 #include "GrGLSL_impl.h"
344 346
345 #endif 347 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLCaps.cpp ('k') | src/gpu/gl/GrGLSL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698