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

Unified Diff: src/gpu/gl/GrGLProgramDataManager.h

Issue 365853002: Rename GrGLUniformManager to GrGLProgramResourceManager (Closed) Base URL: https://skia.googlesource.com/skia.git@02-path-program-fragment
Patch Set: rebase Created 6 years, 5 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/GrGLProgram.cpp ('k') | src/gpu/gl/GrGLProgramDataManager.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/GrGLProgramDataManager.h
diff --git a/src/gpu/gl/GrGLUniformManager.h b/src/gpu/gl/GrGLProgramDataManager.h
similarity index 89%
rename from src/gpu/gl/GrGLUniformManager.h
rename to src/gpu/gl/GrGLProgramDataManager.h
index 6137bcd9cc88806769b63cf1139feab103707d07..ebbcf54782c1b6a9cbf4301e0af343980e0cc087 100644
--- a/src/gpu/gl/GrGLUniformManager.h
+++ b/src/gpu/gl/GrGLProgramDataManager.h
@@ -5,8 +5,8 @@
* found in the LICENSE file.
*/
-#ifndef GrGLUniformManager_DEFINED
-#define GrGLUniformManager_DEFINED
+#ifndef GrGLProgramDataManager_DEFINED
+#define GrGLProgramDataManager_DEFINED
#include "gl/GrGLShaderVar.h"
#include "gl/GrGLSL.h"
@@ -17,9 +17,11 @@
class GrGpuGL;
class SkMatrix;
-/** Manages a program's uniforms.
-*/
-class GrGLUniformManager : public SkRefCnt {
+/** Manages the resources used by a shader program.
+ * The resources are objects the program uses to communicate with the
+ * application code.
+ */
+class GrGLProgramDataManager : public SkRefCnt {
public:
// Opaque handle to a uniform
class UniformHandle {
@@ -43,10 +45,10 @@ public:
int toUniformIndex() const { SkASSERT(isValid()); return ~fValue; }
int fValue;
- friend class GrGLUniformManager; // For accessing toUniformIndex().
+ friend class GrGLProgramDataManager; // For accessing toUniformIndex().
};
- GrGLUniformManager(GrGpuGL* gpu);
+ GrGLProgramDataManager(GrGpuGL* gpu);
UniformHandle appendUniform(GrSLType type, int arrayCount = GrGLShaderVar::kNonArray);
@@ -96,7 +98,7 @@ public:
/**
* Called by the GrGLShaderBuilder to access the array by the handle (index).
*/
- const BuilderUniform& getBuilderUniform(const BuilderUniformArray&, GrGLUniformManager::UniformHandle) const;
+ const BuilderUniform& getBuilderUniform(const BuilderUniformArray&, GrGLProgramDataManager::UniformHandle) const;
private:
enum {
« no previous file with comments | « src/gpu/gl/GrGLProgram.cpp ('k') | src/gpu/gl/GrGLProgramDataManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698