Index: gpu/command_buffer/client/program_info_manager.h |
diff --git a/gpu/command_buffer/client/program_info_manager.h b/gpu/command_buffer/client/program_info_manager.h |
index fa74ea58a0c225758e5fe1ba062f3e178e96f050..fbae19ae375e6581263bc82e81f446000f6aa8b1 100644 |
--- a/gpu/command_buffer/client/program_info_manager.h |
+++ b/gpu/command_buffer/client/program_info_manager.h |
@@ -38,6 +38,10 @@ class GLES2_IMPL_EXPORT ProgramInfoManager { |
GLint GetUniformLocation( |
GLES2Implementation* gl, GLuint program, const char* name); |
+ GLint GetFragDataIndex(GLES2Implementation* gl, |
+ GLuint program, |
+ const char* name); |
+ |
GLint GetFragDataLocation( |
GLES2Implementation* gl, GLuint program, const char* name); |
@@ -166,6 +170,9 @@ class GLES2_IMPL_EXPORT ProgramInfoManager { |
bool GetUniformsiv( |
GLsizei count, const GLuint* indices, GLenum pname, GLint* params); |
+ GLint GetFragDataIndex(const std::string& name) const; |
+ void CacheFragDataIndex(const std::string& name, GLint index); |
+ |
GLint GetFragDataLocation(const std::string& name) const; |
void CacheFragDataLocation(const std::string& name, GLint loc); |
@@ -232,6 +239,7 @@ class GLES2_IMPL_EXPORT ProgramInfoManager { |
std::vector<UniformES3> uniforms_es3_; |
base::hash_map<std::string, GLint> frag_data_locations_; |
+ base::hash_map<std::string, GLint> frag_data_indices_; |
}; |
Program* GetProgramInfo( |