diff options
author | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-16 19:46:06 +0000 |
---|---|---|
committer | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-16 19:46:06 +0000 |
commit | a9fb79dba9a1f718aa112488f6efa773c4d296f5 (patch) | |
tree | 87b16721c4cddc6fcc1d24afffb6b1ec421e963d /gpu/command_buffer/client/gles2_implementation.h | |
parent | c5531187d42e9ac48778a4314b105f6d982c52d1 (diff) | |
download | chromium_src-a9fb79dba9a1f718aa112488f6efa773c4d296f5.zip chromium_src-a9fb79dba9a1f718aa112488f6efa773c4d296f5.tar.gz chromium_src-a9fb79dba9a1f718aa112488f6efa773c4d296f5.tar.bz2 |
Make GLES2Implementation based on GLES2Interface
GLES2Interface is a pure virutal interface. It's likely
that more functions of GLES2Implementation will need have
be declared in GLES2Interface but this is a first step
BUG=155914
Review URL: https://chromiumcodereview.appspot.com/11138021
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162216 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/client/gles2_implementation.h')
-rw-r--r-- | gpu/command_buffer/client/gles2_implementation.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/gpu/command_buffer/client/gles2_implementation.h b/gpu/command_buffer/client/gles2_implementation.h index c10cc51..47fb3b0 100644 --- a/gpu/command_buffer/client/gles2_implementation.h +++ b/gpu/command_buffer/client/gles2_implementation.h @@ -13,11 +13,13 @@ #include <string> #include <vector> +#include "../common/compiler_specific.h" #include "../common/debug_marker_manager.h" #include "../common/gles2_cmd_utils.h" #include "../common/scoped_ptr.h" #include "../client/ref_counted.h" #include "../client/gles2_cmd_helper.h" +#include "../client/gles2_interface.h" #include "../client/query_tracker.h" #include "../client/ring_buffer.h" #include "../client/share_group.h" @@ -98,7 +100,7 @@ class ClientSideBufferHelper; // be had by changing your code to use command buffers directly by using the // GLES2CmdHelper but that entails changing your code to use and deal with // shared memory and synchronization issues. -class GLES2_IMPL_EXPORT GLES2Implementation { +class GLES2_IMPL_EXPORT GLES2Implementation : public GLES2Interface { public: class ErrorMessageCallback { public: @@ -180,7 +182,7 @@ class GLES2_IMPL_EXPORT GLES2Implementation { bool share_resources, bool bind_generates_resource); - ~GLES2Implementation(); + virtual ~GLES2Implementation(); bool Initialize( unsigned int starting_transfer_buffer_size, @@ -199,10 +201,12 @@ class GLES2_IMPL_EXPORT GLES2Implementation { // this file instead of having to edit some template or the code generator. #include "../client/gles2_implementation_autogen.h" - void DisableVertexAttribArray(GLuint index); - void EnableVertexAttribArray(GLuint index); - void GetVertexAttribfv(GLuint index, GLenum pname, GLfloat* params); - void GetVertexAttribiv(GLuint index, GLenum pname, GLint* params); + virtual void DisableVertexAttribArray(GLuint index) OVERRIDE; + virtual void EnableVertexAttribArray(GLuint index) OVERRIDE; + virtual void GetVertexAttribfv( + GLuint index, GLenum pname, GLfloat* params) OVERRIDE; + virtual void GetVertexAttribiv( + GLuint index, GLenum pname, GLint* params) OVERRIDE; void GetProgramInfoCHROMIUMHelper(GLuint program, std::vector<int8>* result); GLint GetAttribLocationHelper(GLuint program, const char* name); |