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

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

Issue 788123002: Add sampler related ES3 APIs to command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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/gles2_implementation.h
diff --git a/gpu/command_buffer/client/gles2_implementation.h b/gpu/command_buffer/client/gles2_implementation.h
index e4730068cf778e5f9abb7da03ed440eb5c45d175..329cb6525706c0342c5c333b01e9d801ce216bf0 100644
--- a/gpu/command_buffer/client/gles2_implementation.h
+++ b/gpu/command_buffer/client/gles2_implementation.h
@@ -431,6 +431,7 @@ class GLES2_IMPL_EXPORT GLES2Implementation
bool IsVertexArrayReservedId(GLuint id) { return false; }
bool IsProgramReservedId(GLuint id) { return false; }
bool IsValuebufferReservedId(GLuint id) { return false; }
+ bool IsSamplerReservedId(GLuint id) { return false; }
void BindBufferHelper(GLenum target, GLuint buffer);
void BindFramebufferHelper(GLenum target, GLuint framebuffer);
@@ -453,6 +454,7 @@ class GLES2_IMPL_EXPORT GLES2Implementation
void GenVertexArraysOESHelper(GLsizei n, const GLuint* arrays);
void GenQueriesEXTHelper(GLsizei n, const GLuint* queries);
void GenValuebuffersCHROMIUMHelper(GLsizei n, const GLuint* valuebuffers);
+ void GenSamplersHelper(GLsizei n, const GLuint* samplers);
void DeleteBuffersHelper(GLsizei n, const GLuint* buffers);
void DeleteFramebuffersHelper(GLsizei n, const GLuint* framebuffers);
@@ -463,6 +465,7 @@ class GLES2_IMPL_EXPORT GLES2Implementation
void DeleteQueriesEXTHelper(GLsizei n, const GLuint* queries);
void DeleteVertexArraysOESHelper(GLsizei n, const GLuint* arrays);
void DeleteValuebuffersCHROMIUMHelper(GLsizei n, const GLuint* valuebuffers);
+ void DeleteSamplersHelper(GLsizei n, const GLuint* samplers);
void DeleteBuffersStub(GLsizei n, const GLuint* buffers);
void DeleteFramebuffersStub(GLsizei n, const GLuint* framebuffers);
@@ -472,6 +475,7 @@ class GLES2_IMPL_EXPORT GLES2Implementation
void DeleteShaderStub(GLsizei n, const GLuint* shaders);
void DeleteVertexArraysOESStub(GLsizei n, const GLuint* arrays);
void DeleteValuebuffersCHROMIUMStub(GLsizei n, const GLuint* valuebuffers);
+ void DeleteSamplersStub(GLsizei n, const GLuint* samplers);
void BufferDataHelper(
GLenum target, GLsizeiptr size, const void* data, GLenum usage);
@@ -520,6 +524,10 @@ class GLES2_IMPL_EXPORT GLES2Implementation
GLenum target, GLenum format, GLenum pname, GLsizei bufSize,
GLint* params);
bool GetProgramivHelper(GLuint program, GLenum pname, GLint* params);
+ bool GetSamplerParameterfvHelper(
+ GLuint sampler, GLenum pname, GLfloat* params);
+ bool GetSamplerParameterivHelper(
+ GLuint sampler, GLenum pname, GLint* params);
bool GetRenderbufferParameterivHelper(
GLenum target, GLenum pname, GLint* params);
bool GetShaderivHelper(GLuint shader, GLenum pname, GLint* params);

Powered by Google App Engine
This is Rietveld 408576698