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

Unified Diff: gpu/command_buffer/client/program_info_manager.h

Issue 1309743005: command_buffer: Implement EXT_blend_func_extended (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@new-05-path-fragment-input-gen
Patch Set: Created 5 years, 4 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
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 6f8a745c0b89d9af2106f1500d148842afad799f..eced69aff9b64ccd4c927dc3adc0bfa71f020ade 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);
@@ -231,6 +238,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(

Powered by Google App Engine
This is Rietveld 408576698