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

Unified Diff: src/gpu/glsl/GrGLSL.h

Issue 1202293002: Move GLSL-specific routines/classes to separate glsl directory (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rename GrGLGLSL.{cpp,h} 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/gl/builders/GrGLVertexShaderBuilder.cpp ('k') | src/gpu/glsl/GrGLSL.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/glsl/GrGLSL.h
diff --git a/src/gpu/gl/GrGLSL.h b/src/gpu/glsl/GrGLSL.h
similarity index 94%
rename from src/gpu/gl/GrGLSL.h
rename to src/gpu/glsl/GrGLSL.h
index b338c991a6ca5415fcc157493b5bdea1cdb723a9..efe31fe2dd051ad3ecfbda2a7154ae7956e4b868 100644
--- a/src/gpu/gl/GrGLSL.h
+++ b/src/gpu/glsl/GrGLSL.h
@@ -8,14 +8,9 @@
#ifndef GrGLSL_DEFINED
#define GrGLSL_DEFINED
-#include "gl/GrGLInterface.h"
-#include "GrColor.h"
#include "GrTypesPriv.h"
#include "SkString.h"
-class GrGLContextInfo;
-class GrGLShaderVar;
-
// Limited set of GLSL versions we build shaders for. Caller should round
// down the GLSL version to one of these enums.
enum GrGLSLGeneration {
@@ -45,25 +40,9 @@ enum GrGLSLGeneration {
k310es_GrGLSLGeneration,
};
-/**
- * Gets the most recent GLSL Generation compatible with the OpenGL context.
- */
-bool GrGetGLSLGeneration(const GrGLInterface* gl, GrGLSLGeneration* generation);
-
bool GrGLSLSupportsNamedFragmentShaderOutputs(GrGLSLGeneration);
/**
- * Returns a string to include at the beginning of a shader to declare the GLSL
- * version.
- */
-const char* GrGetGLSLVersionDecl(const GrGLContextInfo&);
-
-/**
- * Adds a line of GLSL code to declare the default precision for float types.
- */
-void GrGLSLAppendDefaultFloatPrecisionDeclaration(GrSLPrecision, GrGLStandard, SkString* out);
-
-/**
* Gets the name of the function that should be used to sample a 2D texture. Coord type is used
* to indicate whether the texture is sampled using projective textured (kVec3f) or not (kVec2f).
*/
« no previous file with comments | « src/gpu/gl/builders/GrGLVertexShaderBuilder.cpp ('k') | src/gpu/glsl/GrGLSL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698