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

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

Issue 1451683002: Initial version of external_oes texture support and unit test (Closed) Base URL: https://skia.googlesource.com/skia.git@target
Patch Set: again Created 5 years, 1 month 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/egl/SkCreatePlatformGLContext_egl.cpp ('k') | src/gpu/glsl/GrGLSLCaps.h » ('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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 case kVec3f_GrSLType: 78 case kVec3f_GrSLType:
79 return "vec3"; 79 return "vec3";
80 case kVec4f_GrSLType: 80 case kVec4f_GrSLType:
81 return "vec4"; 81 return "vec4";
82 case kMat33f_GrSLType: 82 case kMat33f_GrSLType:
83 return "mat3"; 83 return "mat3";
84 case kMat44f_GrSLType: 84 case kMat44f_GrSLType:
85 return "mat4"; 85 return "mat4";
86 case kSampler2D_GrSLType: 86 case kSampler2D_GrSLType:
87 return "sampler2D"; 87 return "sampler2D";
88 case kSamplerExternal_GrSLType:
89 return "samplerExternalOES";
88 default: 90 default:
89 SkFAIL("Unknown shader var type."); 91 SkFAIL("Unknown shader var type.");
90 return ""; // suppress warning 92 return ""; // suppress warning
91 } 93 }
92 } 94 }
93 95
94 /** A generic base-class representing a GLSL expression. 96 /** A generic base-class representing a GLSL expression.
95 * The instance can be a variable name, expression or vecN(0) or vecN(1). Does s imple constant 97 * The instance can be a variable name, expression or vecN(0) or vecN(1). Does s imple constant
96 * folding with help of 1 and 0. 98 * folding with help of 1 and 0.
97 * 99 *
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 328
327 /** 329 /**
328 * Does an inplace mul, *=, of vec4VarName by mulFactor. 330 * Does an inplace mul, *=, of vec4VarName by mulFactor.
329 * A semicolon is added after the assignment. 331 * A semicolon is added after the assignment.
330 */ 332 */
331 void GrGLSLMulVarBy4f(SkString* outAppend, const char* vec4VarName, const GrGLSL Expr4& mulFactor); 333 void GrGLSLMulVarBy4f(SkString* outAppend, const char* vec4VarName, const GrGLSL Expr4& mulFactor);
332 334
333 #include "GrGLSL_impl.h" 335 #include "GrGLSL_impl.h"
334 336
335 #endif 337 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/egl/SkCreatePlatformGLContext_egl.cpp ('k') | src/gpu/glsl/GrGLSLCaps.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698