0

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
This commit is contained in:
gman@chromium.org
2012-10-16 19:46:06 +00:00
parent c5531187d4
commit a9fb79dba9
16 changed files with 3252 additions and 1463 deletions

@ -2249,7 +2249,7 @@ TEST_F(%(test_name)s, %(name)sInvalidArgs%(arg_index)d_%(value_index)d) {
"""Writes the GLES2 Implemention declaration."""
impl_decl = func.GetInfo('impl_decl')
if impl_decl == None or impl_decl == True:
file.Write("%s %s(%s);\n" %
file.Write("virtual %s %s(%s) OVERRIDE;\n" %
(func.return_type, func.original_name,
func.MakeTypedOriginalArgString("")))
file.Write("\n")
@ -2281,6 +2281,10 @@ TEST_F(%(test_name)s, %(name)sInvalidArgs%(arg_index)d_%(value_index)d) {
file.Write(' GPU_CLIENT_LOG("return:" << result)\n')
def WriteGLES2ImplementationHeader(self, func, file):
"""Writes the GLES2 Implemention."""
self.WriteGLES2ImplementationDeclaration(func, file)
def WriteGLES2Implementation(self, func, file):
"""Writes the GLES2 Implemention."""
impl_func = func.GetInfo('impl_func')
impl_decl = func.GetInfo('impl_decl')
@ -2289,7 +2293,7 @@ TEST_F(%(test_name)s, %(name)sInvalidArgs%(arg_index)d_%(value_index)d) {
(impl_func == None or impl_func == True) and
(impl_decl == None or impl_decl == True) and
(gen_cmd == None or gen_cmd == True)):
file.Write("%s %s(%s) {\n" %
file.Write("%s GLES2Implementation::%s(%s) {\n" %
(func.return_type, func.original_name,
func.MakeTypedOriginalArgString("")))
file.Write(" GPU_CLIENT_SINGLE_THREAD_CHECK();\n")
@ -2302,8 +2306,29 @@ TEST_F(%(test_name)s, %(name)sInvalidArgs%(arg_index)d_%(value_index)d) {
self.WriteClientGLReturnLog(func, file)
file.Write("}\n")
file.Write("\n")
else:
self.WriteGLES2ImplementationDeclaration(func, file)
def WriteGLES2InterfaceHeader(self, func, file):
"""Writes the GLES2 Interface."""
file.Write("virtual %s %s(%s) = 0;\n" %
(func.return_type, func.original_name,
func.MakeTypedOriginalArgString("")))
def WriteGLES2InterfaceStub(self, func, file):
"""Writes the GLES2 Interface stub declaration."""
file.Write("virtual %s %s(%s) OVERRIDE;\n" %
(func.return_type, func.original_name,
func.MakeTypedOriginalArgString("")))
def WriteGLES2InterfaceStubImpl(self, func, file):
"""Writes the GLES2 Interface stub declaration."""
args = func.GetOriginalArgs()
arg_string = ", ".join(
["%s /* %s */" % (arg.type, arg.name) for arg in args])
file.Write("%s GLES2InterfaceStub::%s(%s) {\n" %
(func.return_type, func.original_name, arg_string))
if func.return_type != "void":
file.Write(" return 0;\n")
file.Write("}\n")
def WriteGLES2ImplementationUnitTest(self, func, file):
"""Writes the GLES2 Implemention unit test."""
@ -2474,9 +2499,9 @@ class TodoHandler(CustomHandler):
"""Overrriden from TypeHandler."""
pass
def WriteGLES2ImplementationHeader(self, func, file):
def WriteGLES2Implementation(self, func, file):
"""Overrriden from TypeHandler."""
file.Write("%s %s(%s) {\n" %
file.Write("%s GLES2Implementation::%s(%s) {\n" %
(func.return_type, func.original_name,
func.MakeTypedOriginalArgString("")))
file.Write(" // TODO: for now this is a no-op\n")
@ -2607,9 +2632,13 @@ class ManualHandler(CustomHandler):
"""Overrriden from TypeHandler."""
file.Write("// TODO(gman): Implement test for %s\n" % func.name)
def WriteGLES2Implementation(self, func, file):
"""Overrriden from TypeHandler."""
pass
def WriteGLES2ImplementationHeader(self, func, file):
"""Overrriden from TypeHandler."""
file.Write("%s %s(%s);\n" %
file.Write("virtual %s %s(%s) OVERRIDE;\n" %
(func.return_type, func.original_name,
func.MakeTypedOriginalArgString("")))
file.Write("\n")
@ -2822,7 +2851,7 @@ TEST_F(%(test_name)s, %(name)sInvalidArgs%(arg_index)d_%(value_index)d) {
"""
self.WriteInvalidUnitTest(func, file, invalid_test)
def WriteGLES2ImplementationHeader(self, func, file):
def WriteGLES2Implementation(self, func, file):
"""Writes the GLES2 Implemention."""
impl_func = func.GetInfo('impl_func')
@ -2832,7 +2861,7 @@ TEST_F(%(test_name)s, %(name)sInvalidArgs%(arg_index)d_%(value_index)d) {
(impl_func == None or impl_func == True) and
(impl_decl == None or impl_decl == True)):
file.Write("%s %s(%s) {\n" %
file.Write("%s GLES2Implementation::%s(%s) {\n" %
(func.return_type, func.original_name,
func.MakeTypedOriginalArgString("")))
file.Write(" GPU_CLIENT_SINGLE_THREAD_CHECK();\n")
@ -2866,9 +2895,6 @@ TEST_F(%(test_name)s, %(name)sInvalidArgs%(arg_index)d_%(value_index)d) {
'lc_type': name_arg.resource_type.lower(),
})
else:
self.WriteGLES2ImplementationDeclaration(func, file)
class GENnHandler(TypeHandler):
"""Handler for glGen___ type functions."""
@ -2903,7 +2929,7 @@ class GENnHandler(TypeHandler):
" }\n" %
(func.original_name, func.GetLastOriginalArg().name))
def WriteGLES2ImplementationHeader(self, func, file):
def WriteGLES2Implementation(self, func, file):
"""Overrriden from TypeHandler."""
log_code = (""" GPU_CLIENT_LOG_CODE_BLOCK({
for (GLsizei i = 0; i < n; ++i) {
@ -2919,7 +2945,9 @@ class GENnHandler(TypeHandler):
'resource_types': func.GetInfo('resource_types'),
'count_name': func.GetOriginalArgs()[0].name,
}
file.Write("%(return_type)s %(name)s(%(typed_args)s) {\n" % args)
file.Write(
"%(return_type)s GLES2Implementation::%(name)s(%(typed_args)s) {\n" %
args)
func.WriteDestinationInitalizationValidation(file)
self.WriteClientGLCallLog(func, file)
for arg in func.GetOriginalArgs():
@ -3164,9 +3192,9 @@ TEST_F(%(test_name)s, %(name)sInvalidArgs%(arg_index)d_%(value_index)d) {
file.Write(" return error::kInvalidArguments;\n")
file.Write(" }\n")
def WriteGLES2ImplementationHeader(self, func, file):
def WriteGLES2Implementation(self, func, file):
"""Overrriden from TypeHandler."""
file.Write("%s %s(%s) {\n" %
file.Write("%s GLES2Implementation::%s(%s) {\n" %
(func.return_type, func.original_name,
func.MakeTypedOriginalArgString("")))
file.Write(" GPU_CLIENT_SINGLE_THREAD_CHECK();\n")
@ -3196,9 +3224,9 @@ class DeleteHandler(TypeHandler):
"""Overrriden from TypeHandler."""
pass
def WriteGLES2ImplementationHeader(self, func, file):
def WriteGLES2Implementation(self, func, file):
"""Overrriden from TypeHandler."""
file.Write("%s %s(%s) {\n" %
file.Write("%s GLES2Implementation::%s(%s) {\n" %
(func.return_type, func.original_name,
func.MakeTypedOriginalArgString("")))
file.Write(" GPU_CLIENT_SINGLE_THREAD_CHECK();\n")
@ -3328,7 +3356,7 @@ TEST_F(%(test_name)s, %(name)sInvalidArgs) {
file.Write(" %sHelper(n, %s);\n" %
(func.original_name, func.GetLastOriginalArg().name))
def WriteGLES2ImplementationHeader(self, func, file):
def WriteGLES2Implementation(self, func, file):
"""Overrriden from TypeHandler."""
impl_decl = func.GetInfo('impl_decl')
if impl_decl == None or impl_decl == True:
@ -3340,7 +3368,9 @@ TEST_F(%(test_name)s, %(name)sInvalidArgs) {
'resource_type': func.GetInfo('resource_type').lower(),
'count_name': func.GetOriginalArgs()[0].name,
}
file.Write("%(return_type)s %(name)s(%(typed_args)s) {\n" % args)
file.Write(
"%(return_type)s GLES2Implementation::%(name)s(%(typed_args)s) {\n" %
args)
file.Write(" GPU_CLIENT_SINGLE_THREAD_CHECK();\n")
func.WriteDestinationInitalizationValidation(file)
self.WriteClientGLCallLog(func, file)
@ -3507,11 +3537,11 @@ class GETnHandler(TypeHandler):
"""
file.Write(code)
def WriteGLES2ImplementationHeader(self, func, file):
def WriteGLES2Implementation(self, func, file):
"""Overrriden from TypeHandler."""
impl_decl = func.GetInfo('impl_decl')
if impl_decl == None or impl_decl == True:
file.Write("%s %s(%s) {\n" %
file.Write("%s GLES2Implementation::%s(%s) {\n" %
(func.return_type, func.original_name,
func.MakeTypedOriginalArgString("")))
file.Write(" GPU_CLIENT_SINGLE_THREAD_CHECK();\n")
@ -3741,9 +3771,9 @@ TEST_F(%(test_name)s, %(name)sInvalidArgs%(arg_index)d_%(value_index)d) {
file.Write(" return error::kOutOfBounds;\n")
file.Write(" }\n")
def WriteGLES2ImplementationHeader(self, func, file):
def WriteGLES2Implementation(self, func, file):
"""Overrriden from TypeHandler."""
file.Write("%s %s(%s) {\n" %
file.Write("%s GLES2Implementation::%s(%s) {\n" %
(func.return_type, func.original_name,
func.MakeTypedOriginalArgString("")))
file.Write(" GPU_CLIENT_SINGLE_THREAD_CHECK();\n")
@ -4010,9 +4040,9 @@ TEST_F(%(test_name)s, %(name)sInvalidArgs%(arg_index)d_%(value_index)d) {
file.Write(" return error::kOutOfBounds;\n")
file.Write(" }\n")
def WriteGLES2ImplementationHeader(self, func, file):
def WriteGLES2Implementation(self, func, file):
"""Overrriden from TypeHandler."""
file.Write("%s %s(%s) {\n" %
file.Write("%s GLES2Implementation::%s(%s) {\n" %
(func.return_type, func.original_name,
func.MakeTypedOriginalArgString("")))
file.Write(" GPU_CLIENT_SINGLE_THREAD_CHECK();\n")
@ -4493,12 +4523,12 @@ TEST_F(%(test_name)s, %(name)sInvalidArgsBadSharedMemoryId) {
file.Write("}\n")
file.Write("\n")
def WriteGLES2ImplementationHeader(self, func, file):
def WriteGLES2Implementation(self, func, file):
"""Overrriden from TypeHandler."""
impl_func = func.GetInfo('impl_func')
if impl_func == None or impl_func == True:
error_value = func.GetInfo("error_value") or "GL_FALSE"
file.Write("%s %s(%s) {\n" %
file.Write("%s GLES2Implementation::%s(%s) {\n" %
(func.return_type, func.original_name,
func.MakeTypedOriginalArgString("")))
file.Write(" GPU_CLIENT_SINGLE_THREAD_CHECK();\n")
@ -4522,8 +4552,6 @@ TEST_F(%(test_name)s, %(name)sInvalidArgsBadSharedMemoryId) {
file.Write(" return *result;\n")
file.Write("}\n")
file.Write("\n")
else:
self.WriteGLES2ImplementationDeclaration(func, file)
def WriteGLES2ImplementationUnitTest(self, func, file):
"""Overrriden from TypeHandler."""
@ -4571,9 +4599,9 @@ class STRnHandler(TypeHandler):
# add on a bucket id.
func.AddCmdArg(Argument('bucket_id', 'uint32'))
def WriteGLES2ImplementationHeader(self, func, file):
def WriteGLES2Implementation(self, func, file):
"""Overrriden from TypeHandler."""
code_1 = """%(return_type)s %(func_name)s(%(args)s) {
code_1 = """%(return_type)s GLES2Implementation::%(func_name)s(%(args)s) {
GPU_CLIENT_SINGLE_THREAD_CHECK();
"""
code_2 = """ GPU_CLIENT_LOG("[" << GetLogPrefix()
@ -5505,10 +5533,26 @@ class Function(object):
"""Writes the GLES2 C Lib Implemention."""
self.type_handler.WriteGLES2CLibImplementation(self, file)
def WriteGLES2InterfaceHeader(self, file):
"""Writes the GLES2 Interface declaration."""
self.type_handler.WriteGLES2InterfaceHeader(self, file)
def WriteGLES2InterfaceStub(self, file):
"""Writes the GLES2 Interface Stub declaration."""
self.type_handler.WriteGLES2InterfaceStub(self, file)
def WriteGLES2InterfaceStubImpl(self, file):
"""Writes the GLES2 Interface Stub declaration."""
self.type_handler.WriteGLES2InterfaceStubImpl(self, file)
def WriteGLES2ImplementationHeader(self, file):
"""Writes the GLES2 Implemention declaration."""
self.type_handler.WriteGLES2ImplementationHeader(self, file)
def WriteGLES2Implementation(self, file):
"""Writes the GLES2 Implemention definition."""
self.type_handler.WriteGLES2Implementation(self, file)
def WriteGLES2ImplementationUnitTest(self, file):
"""Writes the GLES2 Implemention unit test."""
self.type_handler.WriteGLES2ImplementationUnitTest(self, file)
@ -6023,8 +6067,36 @@ class GLGenerator(object):
file.Close()
def WriteGLES2InterfaceHeader(self, filename):
"""Writes the GLES2 interface header."""
file = CHeaderWriter(
filename,
"// This file is included by gles2_interface.h to declare the\n"
"// GL api functions.\n")
for func in self.original_functions:
func.WriteGLES2InterfaceHeader(file)
file.Close()
def WriteGLES2InterfaceStub(self, filename):
"""Writes the GLES2 interface stub header."""
file = CHeaderWriter(
filename,
"// This file is included by gles2_interface_stub.h.\n")
for func in self.original_functions:
func.WriteGLES2InterfaceStub(file)
file.Close()
def WriteGLES2InterfaceStubImpl(self, filename):
"""Writes the GLES2 interface header."""
file = CHeaderWriter(
filename,
"// This file is included by gles2_interface_stub.cc.\n")
for func in self.original_functions:
func.WriteGLES2InterfaceStubImpl(file)
file.Close()
def WriteGLES2ImplementationHeader(self, filename):
"""Writes the GLES2 helper header."""
"""Writes the GLES2 Implementation header."""
file = CHeaderWriter(
filename,
"// This file is included by gles2_implementation.h to declare the\n"
@ -6033,6 +6105,16 @@ class GLGenerator(object):
func.WriteGLES2ImplementationHeader(file)
file.Close()
def WriteGLES2Implementation(self, filename):
"""Writes the GLES2 Implementation."""
file = CHeaderWriter(
filename,
"// This file is included by gles2_implementation.cc to define the\n"
"// GL api functions.\n")
for func in self.original_functions:
func.WriteGLES2Implementation(file)
file.Close()
def WriteGLES2ImplementationUnitTests(self, filename):
"""Writes the GLES2 helper header."""
file = CHeaderWriter(
@ -6407,7 +6489,12 @@ def main(argv):
gen.WriteCommandIds("common/gles2_cmd_ids_autogen.h")
gen.WriteFormat("common/gles2_cmd_format_autogen.h")
gen.WriteFormatTest("common/gles2_cmd_format_test_autogen.h")
gen.WriteGLES2InterfaceHeader("client/gles2_interface_autogen.h")
gen.WriteGLES2InterfaceStub("client/gles2_interface_stub_autogen.h")
gen.WriteGLES2InterfaceStubImpl(
"client/gles2_interface_stub_impl_autogen.h")
gen.WriteGLES2ImplementationHeader("client/gles2_implementation_autogen.h")
gen.WriteGLES2Implementation("client/gles2_implementation_impl_autogen.h")
gen.WriteGLES2ImplementationUnitTests(
"client/gles2_implementation_unittest_autogen.h")
gen.WriteGLES2CLibImplementation("client/gles2_c_lib_autogen.h")

@ -3470,5 +3470,10 @@ void GLES2Implementation::PopGroupMarkerEXT() {
debug_marker_manager_.PopGroup();
}
// Include the auto-generated part of this file. We split this because it means
// we can easily edit the non-auto generated parts right here in this file
// instead of having to edit some template or the code generator.
#include "../client/gles2_implementation_impl_autogen.h"
} // namespace gles2
} // namespace gpu

@ -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);

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -0,0 +1,19 @@
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "../client/gles2_interface.h"
namespace gpu {
namespace gles2 {
GLES2Interface::GLES2Interface() {
}
GLES2Interface::~GLES2Interface() {
}
} // namespace gles2
} // namespace gpu

@ -0,0 +1,29 @@
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_INTERFACE_H_
#define GPU_COMMAND_BUFFER_CLIENT_GLES2_INTERFACE_H_
#include <GLES2/gl2.h>
#include "gles2_impl_export.h"
namespace gpu {
namespace gles2 {
// This class is the interface for all client side GL functions.
class GLES2_IMPL_EXPORT GLES2Interface {
public:
GLES2Interface();
virtual ~GLES2Interface();
// Include the auto-generated part of this class. We split this because
// it means we can easily edit the non-auto generated parts right here in
// this file instead of having to edit some template or the code generator.
#include "../client/gles2_interface_autogen.h"
};
} // namespace gles2
} // namespace gpu
#endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_INTERFACE_H_

@ -0,0 +1,290 @@
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file is auto-generated from
// gpu/command_buffer/build_gles2_cmd_buffer.py
// DO NOT EDIT!
// This file is included by gles2_interface.h to declare the
// GL api functions.
#ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_INTERFACE_AUTOGEN_H_
#define GPU_COMMAND_BUFFER_CLIENT_GLES2_INTERFACE_AUTOGEN_H_
virtual void ActiveTexture(GLenum texture) = 0;
virtual void AttachShader(GLuint program, GLuint shader) = 0;
virtual void BindAttribLocation(
GLuint program, GLuint index, const char* name) = 0;
virtual void BindBuffer(GLenum target, GLuint buffer) = 0;
virtual void BindFramebuffer(GLenum target, GLuint framebuffer) = 0;
virtual void BindRenderbuffer(GLenum target, GLuint renderbuffer) = 0;
virtual void BindTexture(GLenum target, GLuint texture) = 0;
virtual void BlendColor(
GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) = 0;
virtual void BlendEquation(GLenum mode) = 0;
virtual void BlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha) = 0;
virtual void BlendFunc(GLenum sfactor, GLenum dfactor) = 0;
virtual void BlendFuncSeparate(
GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) = 0;
virtual void BufferData(
GLenum target, GLsizeiptr size, const void* data, GLenum usage) = 0;
virtual void BufferSubData(
GLenum target, GLintptr offset, GLsizeiptr size, const void* data) = 0;
virtual GLenum CheckFramebufferStatus(GLenum target) = 0;
virtual void Clear(GLbitfield mask) = 0;
virtual void ClearColor(
GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) = 0;
virtual void ClearDepthf(GLclampf depth) = 0;
virtual void ClearStencil(GLint s) = 0;
virtual void ColorMask(
GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) = 0;
virtual void CompileShader(GLuint shader) = 0;
virtual void CompressedTexImage2D(
GLenum target, GLint level, GLenum internalformat, GLsizei width,
GLsizei height, GLint border, GLsizei imageSize, const void* data) = 0;
virtual void CompressedTexSubImage2D(
GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width,
GLsizei height, GLenum format, GLsizei imageSize, const void* data) = 0;
virtual void CopyTexImage2D(
GLenum target, GLint level, GLenum internalformat, GLint x, GLint y,
GLsizei width, GLsizei height, GLint border) = 0;
virtual void CopyTexSubImage2D(
GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y,
GLsizei width, GLsizei height) = 0;
virtual GLuint CreateProgram() = 0;
virtual GLuint CreateShader(GLenum type) = 0;
virtual void CullFace(GLenum mode) = 0;
virtual void DeleteBuffers(GLsizei n, const GLuint* buffers) = 0;
virtual void DeleteFramebuffers(GLsizei n, const GLuint* framebuffers) = 0;
virtual void DeleteProgram(GLuint program) = 0;
virtual void DeleteRenderbuffers(GLsizei n, const GLuint* renderbuffers) = 0;
virtual void DeleteShader(GLuint shader) = 0;
virtual void DeleteTextures(GLsizei n, const GLuint* textures) = 0;
virtual void DepthFunc(GLenum func) = 0;
virtual void DepthMask(GLboolean flag) = 0;
virtual void DepthRangef(GLclampf zNear, GLclampf zFar) = 0;
virtual void DetachShader(GLuint program, GLuint shader) = 0;
virtual void Disable(GLenum cap) = 0;
virtual void DisableVertexAttribArray(GLuint index) = 0;
virtual void DrawArrays(GLenum mode, GLint first, GLsizei count) = 0;
virtual void DrawElements(
GLenum mode, GLsizei count, GLenum type, const void* indices) = 0;
virtual void Enable(GLenum cap) = 0;
virtual void EnableVertexAttribArray(GLuint index) = 0;
virtual void Finish() = 0;
virtual void Flush() = 0;
virtual void ShallowFlushCHROMIUM() = 0;
virtual void FramebufferRenderbuffer(
GLenum target, GLenum attachment, GLenum renderbuffertarget,
GLuint renderbuffer) = 0;
virtual void FramebufferTexture2D(
GLenum target, GLenum attachment, GLenum textarget, GLuint texture,
GLint level) = 0;
virtual void FrontFace(GLenum mode) = 0;
virtual void GenBuffers(GLsizei n, GLuint* buffers) = 0;
virtual void GenerateMipmap(GLenum target) = 0;
virtual void GenFramebuffers(GLsizei n, GLuint* framebuffers) = 0;
virtual void GenRenderbuffers(GLsizei n, GLuint* renderbuffers) = 0;
virtual void GenTextures(GLsizei n, GLuint* textures) = 0;
virtual void GetActiveAttrib(
GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size,
GLenum* type, char* name) = 0;
virtual void GetActiveUniform(
GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size,
GLenum* type, char* name) = 0;
virtual void GetAttachedShaders(
GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders) = 0;
virtual GLint GetAttribLocation(GLuint program, const char* name) = 0;
virtual void GetBooleanv(GLenum pname, GLboolean* params) = 0;
virtual void GetBufferParameteriv(GLenum target, GLenum pname, GLint* params) =
0;
virtual GLenum GetError() = 0;
virtual void GetFloatv(GLenum pname, GLfloat* params) = 0;
virtual void GetFramebufferAttachmentParameteriv(
GLenum target, GLenum attachment, GLenum pname, GLint* params) = 0;
virtual void GetIntegerv(GLenum pname, GLint* params) = 0;
virtual void GetProgramiv(GLuint program, GLenum pname, GLint* params) = 0;
virtual void GetProgramInfoLog(
GLuint program, GLsizei bufsize, GLsizei* length, char* infolog) = 0;
virtual void GetRenderbufferParameteriv(
GLenum target, GLenum pname, GLint* params) = 0;
virtual void GetShaderiv(GLuint shader, GLenum pname, GLint* params) = 0;
virtual void GetShaderInfoLog(
GLuint shader, GLsizei bufsize, GLsizei* length, char* infolog) = 0;
virtual void GetShaderPrecisionFormat(
GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision) =
0;
virtual void GetShaderSource(
GLuint shader, GLsizei bufsize, GLsizei* length, char* source) = 0;
virtual const GLubyte* GetString(GLenum name) = 0;
virtual void GetTexParameterfv(GLenum target, GLenum pname, GLfloat* params) =
0;
virtual void GetTexParameteriv(GLenum target, GLenum pname, GLint* params) = 0;
virtual void GetUniformfv(GLuint program, GLint location, GLfloat* params) = 0;
virtual void GetUniformiv(GLuint program, GLint location, GLint* params) = 0;
virtual GLint GetUniformLocation(GLuint program, const char* name) = 0;
virtual void GetVertexAttribfv(GLuint index, GLenum pname, GLfloat* params) =
0;
virtual void GetVertexAttribiv(GLuint index, GLenum pname, GLint* params) = 0;
virtual void GetVertexAttribPointerv(
GLuint index, GLenum pname, void** pointer) = 0;
virtual void Hint(GLenum target, GLenum mode) = 0;
virtual GLboolean IsBuffer(GLuint buffer) = 0;
virtual GLboolean IsEnabled(GLenum cap) = 0;
virtual GLboolean IsFramebuffer(GLuint framebuffer) = 0;
virtual GLboolean IsProgram(GLuint program) = 0;
virtual GLboolean IsRenderbuffer(GLuint renderbuffer) = 0;
virtual GLboolean IsShader(GLuint shader) = 0;
virtual GLboolean IsTexture(GLuint texture) = 0;
virtual void LineWidth(GLfloat width) = 0;
virtual void LinkProgram(GLuint program) = 0;
virtual void PixelStorei(GLenum pname, GLint param) = 0;
virtual void PolygonOffset(GLfloat factor, GLfloat units) = 0;
virtual void ReadPixels(
GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type,
void* pixels) = 0;
virtual void ReleaseShaderCompiler() = 0;
virtual void RenderbufferStorage(
GLenum target, GLenum internalformat, GLsizei width, GLsizei height) = 0;
virtual void SampleCoverage(GLclampf value, GLboolean invert) = 0;
virtual void Scissor(GLint x, GLint y, GLsizei width, GLsizei height) = 0;
virtual void ShaderBinary(
GLsizei n, const GLuint* shaders, GLenum binaryformat, const void* binary,
GLsizei length) = 0;
virtual void ShaderSource(
GLuint shader, GLsizei count, const char** str, const GLint* length) = 0;
virtual void StencilFunc(GLenum func, GLint ref, GLuint mask) = 0;
virtual void StencilFuncSeparate(
GLenum face, GLenum func, GLint ref, GLuint mask) = 0;
virtual void StencilMask(GLuint mask) = 0;
virtual void StencilMaskSeparate(GLenum face, GLuint mask) = 0;
virtual void StencilOp(GLenum fail, GLenum zfail, GLenum zpass) = 0;
virtual void StencilOpSeparate(
GLenum face, GLenum fail, GLenum zfail, GLenum zpass) = 0;
virtual void TexImage2D(
GLenum target, GLint level, GLint internalformat, GLsizei width,
GLsizei height, GLint border, GLenum format, GLenum type,
const void* pixels) = 0;
virtual void TexParameterf(GLenum target, GLenum pname, GLfloat param) = 0;
virtual void TexParameterfv(
GLenum target, GLenum pname, const GLfloat* params) = 0;
virtual void TexParameteri(GLenum target, GLenum pname, GLint param) = 0;
virtual void TexParameteriv(GLenum target, GLenum pname, const GLint* params) =
0;
virtual void TexSubImage2D(
GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width,
GLsizei height, GLenum format, GLenum type, const void* pixels) = 0;
virtual void Uniform1f(GLint location, GLfloat x) = 0;
virtual void Uniform1fv(GLint location, GLsizei count, const GLfloat* v) = 0;
virtual void Uniform1i(GLint location, GLint x) = 0;
virtual void Uniform1iv(GLint location, GLsizei count, const GLint* v) = 0;
virtual void Uniform2f(GLint location, GLfloat x, GLfloat y) = 0;
virtual void Uniform2fv(GLint location, GLsizei count, const GLfloat* v) = 0;
virtual void Uniform2i(GLint location, GLint x, GLint y) = 0;
virtual void Uniform2iv(GLint location, GLsizei count, const GLint* v) = 0;
virtual void Uniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z) = 0;
virtual void Uniform3fv(GLint location, GLsizei count, const GLfloat* v) = 0;
virtual void Uniform3i(GLint location, GLint x, GLint y, GLint z) = 0;
virtual void Uniform3iv(GLint location, GLsizei count, const GLint* v) = 0;
virtual void Uniform4f(
GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) = 0;
virtual void Uniform4fv(GLint location, GLsizei count, const GLfloat* v) = 0;
virtual void Uniform4i(GLint location, GLint x, GLint y, GLint z, GLint w) = 0;
virtual void Uniform4iv(GLint location, GLsizei count, const GLint* v) = 0;
virtual void UniformMatrix2fv(
GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) =
0;
virtual void UniformMatrix3fv(
GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) =
0;
virtual void UniformMatrix4fv(
GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) =
0;
virtual void UseProgram(GLuint program) = 0;
virtual void ValidateProgram(GLuint program) = 0;
virtual void VertexAttrib1f(GLuint indx, GLfloat x) = 0;
virtual void VertexAttrib1fv(GLuint indx, const GLfloat* values) = 0;
virtual void VertexAttrib2f(GLuint indx, GLfloat x, GLfloat y) = 0;
virtual void VertexAttrib2fv(GLuint indx, const GLfloat* values) = 0;
virtual void VertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z) = 0;
virtual void VertexAttrib3fv(GLuint indx, const GLfloat* values) = 0;
virtual void VertexAttrib4f(
GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) = 0;
virtual void VertexAttrib4fv(GLuint indx, const GLfloat* values) = 0;
virtual void VertexAttribPointer(
GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride,
const void* ptr) = 0;
virtual void Viewport(GLint x, GLint y, GLsizei width, GLsizei height) = 0;
virtual void BlitFramebufferEXT(
GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0,
GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter) = 0;
virtual void RenderbufferStorageMultisampleEXT(
GLenum target, GLsizei samples, GLenum internalformat, GLsizei width,
GLsizei height) = 0;
virtual void TexStorage2DEXT(
GLenum target, GLsizei levels, GLenum internalFormat, GLsizei width,
GLsizei height) = 0;
virtual void GenQueriesEXT(GLsizei n, GLuint* queries) = 0;
virtual void DeleteQueriesEXT(GLsizei n, const GLuint* queries) = 0;
virtual GLboolean IsQueryEXT(GLuint id) = 0;
virtual void BeginQueryEXT(GLenum target, GLuint id) = 0;
virtual void EndQueryEXT(GLenum target) = 0;
virtual void GetQueryivEXT(GLenum target, GLenum pname, GLint* params) = 0;
virtual void GetQueryObjectuivEXT(GLuint id, GLenum pname, GLuint* params) = 0;
virtual void InsertEventMarkerEXT(GLsizei length, const GLchar* marker) = 0;
virtual void PushGroupMarkerEXT(GLsizei length, const GLchar* marker) = 0;
virtual void PopGroupMarkerEXT() = 0;
virtual void GenVertexArraysOES(GLsizei n, GLuint* arrays) = 0;
virtual void DeleteVertexArraysOES(GLsizei n, const GLuint* arrays) = 0;
virtual GLboolean IsVertexArrayOES(GLuint array) = 0;
virtual void BindVertexArrayOES(GLuint array) = 0;
virtual void SwapBuffers() = 0;
virtual GLuint GetMaxValueInBufferCHROMIUM(
GLuint buffer_id, GLsizei count, GLenum type, GLuint offset) = 0;
virtual void GenSharedIdsCHROMIUM(
GLuint namespace_id, GLuint id_offset, GLsizei n, GLuint* ids) = 0;
virtual void DeleteSharedIdsCHROMIUM(
GLuint namespace_id, GLsizei n, const GLuint* ids) = 0;
virtual void RegisterSharedIdsCHROMIUM(
GLuint namespace_id, GLsizei n, const GLuint* ids) = 0;
virtual GLboolean EnableFeatureCHROMIUM(const char* feature) = 0;
virtual void* MapBufferSubDataCHROMIUM(
GLuint target, GLintptr offset, GLsizeiptr size, GLenum access) = 0;
virtual void UnmapBufferSubDataCHROMIUM(const void* mem) = 0;
virtual void* MapTexSubImage2DCHROMIUM(
GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width,
GLsizei height, GLenum format, GLenum type, GLenum access) = 0;
virtual void UnmapTexSubImage2DCHROMIUM(const void* mem) = 0;
virtual void ResizeCHROMIUM(GLuint width, GLuint height) = 0;
virtual const GLchar* GetRequestableExtensionsCHROMIUM() = 0;
virtual void RequestExtensionCHROMIUM(const char* extension) = 0;
virtual void RateLimitOffscreenContextCHROMIUM() = 0;
virtual void GetMultipleIntegervCHROMIUM(
const GLenum* pnames, GLuint count, GLint* results, GLsizeiptr size) = 0;
virtual void GetProgramInfoCHROMIUM(
GLuint program, GLsizei bufsize, GLsizei* size, void* info) = 0;
virtual GLuint CreateStreamTextureCHROMIUM(GLuint texture) = 0;
virtual void DestroyStreamTextureCHROMIUM(GLuint texture) = 0;
virtual void GetTranslatedShaderSourceANGLE(
GLuint shader, GLsizei bufsize, GLsizei* length, char* source) = 0;
virtual void PostSubBufferCHROMIUM(
GLint x, GLint y, GLint width, GLint height) = 0;
virtual void TexImageIOSurface2DCHROMIUM(
GLenum target, GLsizei width, GLsizei height, GLuint ioSurfaceId,
GLuint plane) = 0;
virtual void CopyTextureCHROMIUM(
GLenum target, GLenum source_id, GLenum dest_id, GLint level,
GLint internalformat) = 0;
virtual void DrawArraysInstancedANGLE(
GLenum mode, GLint first, GLsizei count, GLsizei primcount) = 0;
virtual void DrawElementsInstancedANGLE(
GLenum mode, GLsizei count, GLenum type, const void* indices,
GLsizei primcount) = 0;
virtual void VertexAttribDivisorANGLE(GLuint index, GLuint divisor) = 0;
virtual void GenMailboxCHROMIUM(GLbyte* mailbox) = 0;
virtual void ProduceTextureCHROMIUM(GLenum target, const GLbyte* mailbox) = 0;
virtual void ConsumeTextureCHROMIUM(GLenum target, const GLbyte* mailbox) = 0;
virtual void BindUniformLocationCHROMIUM(
GLuint program, GLint location, const char* name) = 0;
#endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_INTERFACE_AUTOGEN_H_

@ -0,0 +1,24 @@
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "gpu/command_buffer/client/gles2_interface_stub.h"
namespace gpu {
namespace gles2 {
GLES2InterfaceStub::GLES2InterfaceStub() {
}
GLES2InterfaceStub::~GLES2InterfaceStub() {
}
// Include the auto-generated part of this class. We split this because
// it means we can easily edit the non-auto generated parts right here in
// this file instead of having to edit some template or the code generator.
#include "gpu/command_buffer/client/gles2_interface_stub_impl_autogen.h"
} // namespace gles2
} // namespace gpu

@ -0,0 +1,29 @@
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_INTERFACE_STUB_H_
#define GPU_COMMAND_BUFFER_CLIENT_GLES2_INTERFACE_STUB_H_
#include "gpu/command_buffer/common/compiler_specific.h"
#include "gpu/command_buffer/client/gles2_interface.h"
namespace gpu {
namespace gles2 {
// This class a stub to help with mocks for the GLES2Interface class.
class GLES2InterfaceStub : public GLES2Interface {
public:
GLES2InterfaceStub();
virtual ~GLES2InterfaceStub();
// Include the auto-generated part of this class. We split this because
// it means we can easily edit the non-auto generated parts right here in
// this file instead of having to edit some template or the code generator.
#include "gpu/command_buffer/client/gles2_interface_stub_autogen.h"
};
} // namespace gles2
} // namespace gpu
#endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_INTERFACE_STUB_H_

@ -0,0 +1,322 @@
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file is auto-generated from
// gpu/command_buffer/build_gles2_cmd_buffer.py
// DO NOT EDIT!
// This file is included by gles2_interface_stub.h.
#ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_INTERFACE_STUB_AUTOGEN_H_
#define GPU_COMMAND_BUFFER_CLIENT_GLES2_INTERFACE_STUB_AUTOGEN_H_
virtual void ActiveTexture(GLenum texture) OVERRIDE;
virtual void AttachShader(GLuint program, GLuint shader) OVERRIDE;
virtual void BindAttribLocation(
GLuint program, GLuint index, const char* name) OVERRIDE;
virtual void BindBuffer(GLenum target, GLuint buffer) OVERRIDE;
virtual void BindFramebuffer(GLenum target, GLuint framebuffer) OVERRIDE;
virtual void BindRenderbuffer(GLenum target, GLuint renderbuffer) OVERRIDE;
virtual void BindTexture(GLenum target, GLuint texture) OVERRIDE;
virtual void BlendColor(
GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) OVERRIDE;
virtual void BlendEquation(GLenum mode) OVERRIDE;
virtual void BlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha) OVERRIDE;
virtual void BlendFunc(GLenum sfactor, GLenum dfactor) OVERRIDE;
virtual void BlendFuncSeparate(
GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) OVERRIDE;
virtual void BufferData(
GLenum target, GLsizeiptr size, const void* data, GLenum usage) OVERRIDE;
virtual void BufferSubData(
GLenum target, GLintptr offset, GLsizeiptr size,
const void* data) OVERRIDE;
virtual GLenum CheckFramebufferStatus(GLenum target) OVERRIDE;
virtual void Clear(GLbitfield mask) OVERRIDE;
virtual void ClearColor(
GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) OVERRIDE;
virtual void ClearDepthf(GLclampf depth) OVERRIDE;
virtual void ClearStencil(GLint s) OVERRIDE;
virtual void ColorMask(
GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) OVERRIDE;
virtual void CompileShader(GLuint shader) OVERRIDE;
virtual void CompressedTexImage2D(
GLenum target, GLint level, GLenum internalformat, GLsizei width,
GLsizei height, GLint border, GLsizei imageSize,
const void* data) OVERRIDE;
virtual void CompressedTexSubImage2D(
GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width,
GLsizei height, GLenum format, GLsizei imageSize,
const void* data) OVERRIDE;
virtual void CopyTexImage2D(
GLenum target, GLint level, GLenum internalformat, GLint x, GLint y,
GLsizei width, GLsizei height, GLint border) OVERRIDE;
virtual void CopyTexSubImage2D(
GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y,
GLsizei width, GLsizei height) OVERRIDE;
virtual GLuint CreateProgram() OVERRIDE;
virtual GLuint CreateShader(GLenum type) OVERRIDE;
virtual void CullFace(GLenum mode) OVERRIDE;
virtual void DeleteBuffers(GLsizei n, const GLuint* buffers) OVERRIDE;
virtual void DeleteFramebuffers(
GLsizei n, const GLuint* framebuffers) OVERRIDE;
virtual void DeleteProgram(GLuint program) OVERRIDE;
virtual void DeleteRenderbuffers(
GLsizei n, const GLuint* renderbuffers) OVERRIDE;
virtual void DeleteShader(GLuint shader) OVERRIDE;
virtual void DeleteTextures(GLsizei n, const GLuint* textures) OVERRIDE;
virtual void DepthFunc(GLenum func) OVERRIDE;
virtual void DepthMask(GLboolean flag) OVERRIDE;
virtual void DepthRangef(GLclampf zNear, GLclampf zFar) OVERRIDE;
virtual void DetachShader(GLuint program, GLuint shader) OVERRIDE;
virtual void Disable(GLenum cap) OVERRIDE;
virtual void DisableVertexAttribArray(GLuint index) OVERRIDE;
virtual void DrawArrays(GLenum mode, GLint first, GLsizei count) OVERRIDE;
virtual void DrawElements(
GLenum mode, GLsizei count, GLenum type, const void* indices) OVERRIDE;
virtual void Enable(GLenum cap) OVERRIDE;
virtual void EnableVertexAttribArray(GLuint index) OVERRIDE;
virtual void Finish() OVERRIDE;
virtual void Flush() OVERRIDE;
virtual void ShallowFlushCHROMIUM() OVERRIDE;
virtual void FramebufferRenderbuffer(
GLenum target, GLenum attachment, GLenum renderbuffertarget,
GLuint renderbuffer) OVERRIDE;
virtual void FramebufferTexture2D(
GLenum target, GLenum attachment, GLenum textarget, GLuint texture,
GLint level) OVERRIDE;
virtual void FrontFace(GLenum mode) OVERRIDE;
virtual void GenBuffers(GLsizei n, GLuint* buffers) OVERRIDE;
virtual void GenerateMipmap(GLenum target) OVERRIDE;
virtual void GenFramebuffers(GLsizei n, GLuint* framebuffers) OVERRIDE;
virtual void GenRenderbuffers(GLsizei n, GLuint* renderbuffers) OVERRIDE;
virtual void GenTextures(GLsizei n, GLuint* textures) OVERRIDE;
virtual void GetActiveAttrib(
GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size,
GLenum* type, char* name) OVERRIDE;
virtual void GetActiveUniform(
GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size,
GLenum* type, char* name) OVERRIDE;
virtual void GetAttachedShaders(
GLuint program, GLsizei maxcount, GLsizei* count,
GLuint* shaders) OVERRIDE;
virtual GLint GetAttribLocation(GLuint program, const char* name) OVERRIDE;
virtual void GetBooleanv(GLenum pname, GLboolean* params) OVERRIDE;
virtual void GetBufferParameteriv(
GLenum target, GLenum pname, GLint* params) OVERRIDE;
virtual GLenum GetError() OVERRIDE;
virtual void GetFloatv(GLenum pname, GLfloat* params) OVERRIDE;
virtual void GetFramebufferAttachmentParameteriv(
GLenum target, GLenum attachment, GLenum pname, GLint* params) OVERRIDE;
virtual void GetIntegerv(GLenum pname, GLint* params) OVERRIDE;
virtual void GetProgramiv(
GLuint program, GLenum pname, GLint* params) OVERRIDE;
virtual void GetProgramInfoLog(
GLuint program, GLsizei bufsize, GLsizei* length, char* infolog) OVERRIDE;
virtual void GetRenderbufferParameteriv(
GLenum target, GLenum pname, GLint* params) OVERRIDE;
virtual void GetShaderiv(GLuint shader, GLenum pname, GLint* params) OVERRIDE;
virtual void GetShaderInfoLog(
GLuint shader, GLsizei bufsize, GLsizei* length, char* infolog) OVERRIDE;
virtual void GetShaderPrecisionFormat(
GLenum shadertype, GLenum precisiontype, GLint* range,
GLint* precision) OVERRIDE;
virtual void GetShaderSource(
GLuint shader, GLsizei bufsize, GLsizei* length, char* source) OVERRIDE;
virtual const GLubyte* GetString(GLenum name) OVERRIDE;
virtual void GetTexParameterfv(
GLenum target, GLenum pname, GLfloat* params) OVERRIDE;
virtual void GetTexParameteriv(
GLenum target, GLenum pname, GLint* params) OVERRIDE;
virtual void GetUniformfv(
GLuint program, GLint location, GLfloat* params) OVERRIDE;
virtual void GetUniformiv(
GLuint program, GLint location, GLint* params) OVERRIDE;
virtual GLint GetUniformLocation(GLuint program, const char* name) OVERRIDE;
virtual void GetVertexAttribfv(
GLuint index, GLenum pname, GLfloat* params) OVERRIDE;
virtual void GetVertexAttribiv(
GLuint index, GLenum pname, GLint* params) OVERRIDE;
virtual void GetVertexAttribPointerv(
GLuint index, GLenum pname, void** pointer) OVERRIDE;
virtual void Hint(GLenum target, GLenum mode) OVERRIDE;
virtual GLboolean IsBuffer(GLuint buffer) OVERRIDE;
virtual GLboolean IsEnabled(GLenum cap) OVERRIDE;
virtual GLboolean IsFramebuffer(GLuint framebuffer) OVERRIDE;
virtual GLboolean IsProgram(GLuint program) OVERRIDE;
virtual GLboolean IsRenderbuffer(GLuint renderbuffer) OVERRIDE;
virtual GLboolean IsShader(GLuint shader) OVERRIDE;
virtual GLboolean IsTexture(GLuint texture) OVERRIDE;
virtual void LineWidth(GLfloat width) OVERRIDE;
virtual void LinkProgram(GLuint program) OVERRIDE;
virtual void PixelStorei(GLenum pname, GLint param) OVERRIDE;
virtual void PolygonOffset(GLfloat factor, GLfloat units) OVERRIDE;
virtual void ReadPixels(
GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type,
void* pixels) OVERRIDE;
virtual void ReleaseShaderCompiler() OVERRIDE;
virtual void RenderbufferStorage(
GLenum target, GLenum internalformat, GLsizei width,
GLsizei height) OVERRIDE;
virtual void SampleCoverage(GLclampf value, GLboolean invert) OVERRIDE;
virtual void Scissor(GLint x, GLint y, GLsizei width, GLsizei height) OVERRIDE;
virtual void ShaderBinary(
GLsizei n, const GLuint* shaders, GLenum binaryformat, const void* binary,
GLsizei length) OVERRIDE;
virtual void ShaderSource(
GLuint shader, GLsizei count, const char** str,
const GLint* length) OVERRIDE;
virtual void StencilFunc(GLenum func, GLint ref, GLuint mask) OVERRIDE;
virtual void StencilFuncSeparate(
GLenum face, GLenum func, GLint ref, GLuint mask) OVERRIDE;
virtual void StencilMask(GLuint mask) OVERRIDE;
virtual void StencilMaskSeparate(GLenum face, GLuint mask) OVERRIDE;
virtual void StencilOp(GLenum fail, GLenum zfail, GLenum zpass) OVERRIDE;
virtual void StencilOpSeparate(
GLenum face, GLenum fail, GLenum zfail, GLenum zpass) OVERRIDE;
virtual void TexImage2D(
GLenum target, GLint level, GLint internalformat, GLsizei width,
GLsizei height, GLint border, GLenum format, GLenum type,
const void* pixels) OVERRIDE;
virtual void TexParameterf(
GLenum target, GLenum pname, GLfloat param) OVERRIDE;
virtual void TexParameterfv(
GLenum target, GLenum pname, const GLfloat* params) OVERRIDE;
virtual void TexParameteri(GLenum target, GLenum pname, GLint param) OVERRIDE;
virtual void TexParameteriv(
GLenum target, GLenum pname, const GLint* params) OVERRIDE;
virtual void TexSubImage2D(
GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width,
GLsizei height, GLenum format, GLenum type, const void* pixels) OVERRIDE;
virtual void Uniform1f(GLint location, GLfloat x) OVERRIDE;
virtual void Uniform1fv(
GLint location, GLsizei count, const GLfloat* v) OVERRIDE;
virtual void Uniform1i(GLint location, GLint x) OVERRIDE;
virtual void Uniform1iv(
GLint location, GLsizei count, const GLint* v) OVERRIDE;
virtual void Uniform2f(GLint location, GLfloat x, GLfloat y) OVERRIDE;
virtual void Uniform2fv(
GLint location, GLsizei count, const GLfloat* v) OVERRIDE;
virtual void Uniform2i(GLint location, GLint x, GLint y) OVERRIDE;
virtual void Uniform2iv(
GLint location, GLsizei count, const GLint* v) OVERRIDE;
virtual void Uniform3f(
GLint location, GLfloat x, GLfloat y, GLfloat z) OVERRIDE;
virtual void Uniform3fv(
GLint location, GLsizei count, const GLfloat* v) OVERRIDE;
virtual void Uniform3i(GLint location, GLint x, GLint y, GLint z) OVERRIDE;
virtual void Uniform3iv(
GLint location, GLsizei count, const GLint* v) OVERRIDE;
virtual void Uniform4f(
GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) OVERRIDE;
virtual void Uniform4fv(
GLint location, GLsizei count, const GLfloat* v) OVERRIDE;
virtual void Uniform4i(
GLint location, GLint x, GLint y, GLint z, GLint w) OVERRIDE;
virtual void Uniform4iv(
GLint location, GLsizei count, const GLint* v) OVERRIDE;
virtual void UniformMatrix2fv(
GLint location, GLsizei count, GLboolean transpose,
const GLfloat* value) OVERRIDE;
virtual void UniformMatrix3fv(
GLint location, GLsizei count, GLboolean transpose,
const GLfloat* value) OVERRIDE;
virtual void UniformMatrix4fv(
GLint location, GLsizei count, GLboolean transpose,
const GLfloat* value) OVERRIDE;
virtual void UseProgram(GLuint program) OVERRIDE;
virtual void ValidateProgram(GLuint program) OVERRIDE;
virtual void VertexAttrib1f(GLuint indx, GLfloat x) OVERRIDE;
virtual void VertexAttrib1fv(GLuint indx, const GLfloat* values) OVERRIDE;
virtual void VertexAttrib2f(GLuint indx, GLfloat x, GLfloat y) OVERRIDE;
virtual void VertexAttrib2fv(GLuint indx, const GLfloat* values) OVERRIDE;
virtual void VertexAttrib3f(
GLuint indx, GLfloat x, GLfloat y, GLfloat z) OVERRIDE;
virtual void VertexAttrib3fv(GLuint indx, const GLfloat* values) OVERRIDE;
virtual void VertexAttrib4f(
GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) OVERRIDE;
virtual void VertexAttrib4fv(GLuint indx, const GLfloat* values) OVERRIDE;
virtual void VertexAttribPointer(
GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride,
const void* ptr) OVERRIDE;
virtual void Viewport(
GLint x, GLint y, GLsizei width, GLsizei height) OVERRIDE;
virtual void BlitFramebufferEXT(
GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0,
GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask,
GLenum filter) OVERRIDE;
virtual void RenderbufferStorageMultisampleEXT(
GLenum target, GLsizei samples, GLenum internalformat, GLsizei width,
GLsizei height) OVERRIDE;
virtual void TexStorage2DEXT(
GLenum target, GLsizei levels, GLenum internalFormat, GLsizei width,
GLsizei height) OVERRIDE;
virtual void GenQueriesEXT(GLsizei n, GLuint* queries) OVERRIDE;
virtual void DeleteQueriesEXT(GLsizei n, const GLuint* queries) OVERRIDE;
virtual GLboolean IsQueryEXT(GLuint id) OVERRIDE;
virtual void BeginQueryEXT(GLenum target, GLuint id) OVERRIDE;
virtual void EndQueryEXT(GLenum target) OVERRIDE;
virtual void GetQueryivEXT(
GLenum target, GLenum pname, GLint* params) OVERRIDE;
virtual void GetQueryObjectuivEXT(
GLuint id, GLenum pname, GLuint* params) OVERRIDE;
virtual void InsertEventMarkerEXT(
GLsizei length, const GLchar* marker) OVERRIDE;
virtual void PushGroupMarkerEXT(GLsizei length, const GLchar* marker) OVERRIDE;
virtual void PopGroupMarkerEXT() OVERRIDE;
virtual void GenVertexArraysOES(GLsizei n, GLuint* arrays) OVERRIDE;
virtual void DeleteVertexArraysOES(GLsizei n, const GLuint* arrays) OVERRIDE;
virtual GLboolean IsVertexArrayOES(GLuint array) OVERRIDE;
virtual void BindVertexArrayOES(GLuint array) OVERRIDE;
virtual void SwapBuffers() OVERRIDE;
virtual GLuint GetMaxValueInBufferCHROMIUM(
GLuint buffer_id, GLsizei count, GLenum type, GLuint offset) OVERRIDE;
virtual void GenSharedIdsCHROMIUM(
GLuint namespace_id, GLuint id_offset, GLsizei n, GLuint* ids) OVERRIDE;
virtual void DeleteSharedIdsCHROMIUM(
GLuint namespace_id, GLsizei n, const GLuint* ids) OVERRIDE;
virtual void RegisterSharedIdsCHROMIUM(
GLuint namespace_id, GLsizei n, const GLuint* ids) OVERRIDE;
virtual GLboolean EnableFeatureCHROMIUM(const char* feature) OVERRIDE;
virtual void* MapBufferSubDataCHROMIUM(
GLuint target, GLintptr offset, GLsizeiptr size, GLenum access) OVERRIDE;
virtual void UnmapBufferSubDataCHROMIUM(const void* mem) OVERRIDE;
virtual void* MapTexSubImage2DCHROMIUM(
GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width,
GLsizei height, GLenum format, GLenum type, GLenum access) OVERRIDE;
virtual void UnmapTexSubImage2DCHROMIUM(const void* mem) OVERRIDE;
virtual void ResizeCHROMIUM(GLuint width, GLuint height) OVERRIDE;
virtual const GLchar* GetRequestableExtensionsCHROMIUM() OVERRIDE;
virtual void RequestExtensionCHROMIUM(const char* extension) OVERRIDE;
virtual void RateLimitOffscreenContextCHROMIUM() OVERRIDE;
virtual void GetMultipleIntegervCHROMIUM(
const GLenum* pnames, GLuint count, GLint* results,
GLsizeiptr size) OVERRIDE;
virtual void GetProgramInfoCHROMIUM(
GLuint program, GLsizei bufsize, GLsizei* size, void* info) OVERRIDE;
virtual GLuint CreateStreamTextureCHROMIUM(GLuint texture) OVERRIDE;
virtual void DestroyStreamTextureCHROMIUM(GLuint texture) OVERRIDE;
virtual void GetTranslatedShaderSourceANGLE(
GLuint shader, GLsizei bufsize, GLsizei* length, char* source) OVERRIDE;
virtual void PostSubBufferCHROMIUM(
GLint x, GLint y, GLint width, GLint height) OVERRIDE;
virtual void TexImageIOSurface2DCHROMIUM(
GLenum target, GLsizei width, GLsizei height, GLuint ioSurfaceId,
GLuint plane) OVERRIDE;
virtual void CopyTextureCHROMIUM(
GLenum target, GLenum source_id, GLenum dest_id, GLint level,
GLint internalformat) OVERRIDE;
virtual void DrawArraysInstancedANGLE(
GLenum mode, GLint first, GLsizei count, GLsizei primcount) OVERRIDE;
virtual void DrawElementsInstancedANGLE(
GLenum mode, GLsizei count, GLenum type, const void* indices,
GLsizei primcount) OVERRIDE;
virtual void VertexAttribDivisorANGLE(GLuint index, GLuint divisor) OVERRIDE;
virtual void GenMailboxCHROMIUM(GLbyte* mailbox) OVERRIDE;
virtual void ProduceTextureCHROMIUM(
GLenum target, const GLbyte* mailbox) OVERRIDE;
virtual void ConsumeTextureCHROMIUM(
GLenum target, const GLbyte* mailbox) OVERRIDE;
virtual void BindUniformLocationCHROMIUM(
GLuint program, GLint location, const char* name) OVERRIDE;
#endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_INTERFACE_STUB_AUTOGEN_H_

@ -0,0 +1,600 @@
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file is auto-generated from
// gpu/command_buffer/build_gles2_cmd_buffer.py
// DO NOT EDIT!
// This file is included by gles2_interface_stub.cc.
#ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_INTERFACE_STUB_IMPL_AUTOGEN_H_
#define GPU_COMMAND_BUFFER_CLIENT_GLES2_INTERFACE_STUB_IMPL_AUTOGEN_H_
void GLES2InterfaceStub::ActiveTexture(GLenum /* texture */) {
}
void GLES2InterfaceStub::AttachShader(
GLuint /* program */, GLuint /* shader */) {
}
void GLES2InterfaceStub::BindAttribLocation(
GLuint /* program */, GLuint /* index */, const char* /* name */) {
}
void GLES2InterfaceStub::BindBuffer(GLenum /* target */, GLuint /* buffer */) {
}
void GLES2InterfaceStub::BindFramebuffer(
GLenum /* target */, GLuint /* framebuffer */) {
}
void GLES2InterfaceStub::BindRenderbuffer(
GLenum /* target */, GLuint /* renderbuffer */) {
}
void GLES2InterfaceStub::BindTexture(
GLenum /* target */, GLuint /* texture */) {
}
void GLES2InterfaceStub::BlendColor(
GLclampf /* red */, GLclampf /* green */, GLclampf /* blue */,
GLclampf /* alpha */) {
}
void GLES2InterfaceStub::BlendEquation(GLenum /* mode */) {
}
void GLES2InterfaceStub::BlendEquationSeparate(
GLenum /* modeRGB */, GLenum /* modeAlpha */) {
}
void GLES2InterfaceStub::BlendFunc(
GLenum /* sfactor */, GLenum /* dfactor */) {
}
void GLES2InterfaceStub::BlendFuncSeparate(
GLenum /* srcRGB */, GLenum /* dstRGB */, GLenum /* srcAlpha */,
GLenum /* dstAlpha */) {
}
void GLES2InterfaceStub::BufferData(
GLenum /* target */, GLsizeiptr /* size */, const void* /* data */,
GLenum /* usage */) {
}
void GLES2InterfaceStub::BufferSubData(
GLenum /* target */, GLintptr /* offset */, GLsizeiptr /* size */,
const void* /* data */) {
}
GLenum GLES2InterfaceStub::CheckFramebufferStatus(GLenum /* target */) {
return 0;
}
void GLES2InterfaceStub::Clear(GLbitfield /* mask */) {
}
void GLES2InterfaceStub::ClearColor(
GLclampf /* red */, GLclampf /* green */, GLclampf /* blue */,
GLclampf /* alpha */) {
}
void GLES2InterfaceStub::ClearDepthf(GLclampf /* depth */) {
}
void GLES2InterfaceStub::ClearStencil(GLint /* s */) {
}
void GLES2InterfaceStub::ColorMask(
GLboolean /* red */, GLboolean /* green */, GLboolean /* blue */,
GLboolean /* alpha */) {
}
void GLES2InterfaceStub::CompileShader(GLuint /* shader */) {
}
void GLES2InterfaceStub::CompressedTexImage2D(
GLenum /* target */, GLint /* level */, GLenum /* internalformat */,
GLsizei /* width */, GLsizei /* height */, GLint /* border */,
GLsizei /* imageSize */, const void* /* data */) {
}
void GLES2InterfaceStub::CompressedTexSubImage2D(
GLenum /* target */, GLint /* level */, GLint /* xoffset */,
GLint /* yoffset */, GLsizei /* width */, GLsizei /* height */,
GLenum /* format */, GLsizei /* imageSize */, const void* /* data */) {
}
void GLES2InterfaceStub::CopyTexImage2D(
GLenum /* target */, GLint /* level */, GLenum /* internalformat */,
GLint /* x */, GLint /* y */, GLsizei /* width */, GLsizei /* height */,
GLint /* border */) {
}
void GLES2InterfaceStub::CopyTexSubImage2D(
GLenum /* target */, GLint /* level */, GLint /* xoffset */,
GLint /* yoffset */, GLint /* x */, GLint /* y */, GLsizei /* width */,
GLsizei /* height */) {
}
GLuint GLES2InterfaceStub::CreateProgram() {
return 0;
}
GLuint GLES2InterfaceStub::CreateShader(GLenum /* type */) {
return 0;
}
void GLES2InterfaceStub::CullFace(GLenum /* mode */) {
}
void GLES2InterfaceStub::DeleteBuffers(
GLsizei /* n */, const GLuint* /* buffers */) {
}
void GLES2InterfaceStub::DeleteFramebuffers(
GLsizei /* n */, const GLuint* /* framebuffers */) {
}
void GLES2InterfaceStub::DeleteProgram(GLuint /* program */) {
}
void GLES2InterfaceStub::DeleteRenderbuffers(
GLsizei /* n */, const GLuint* /* renderbuffers */) {
}
void GLES2InterfaceStub::DeleteShader(GLuint /* shader */) {
}
void GLES2InterfaceStub::DeleteTextures(
GLsizei /* n */, const GLuint* /* textures */) {
}
void GLES2InterfaceStub::DepthFunc(GLenum /* func */) {
}
void GLES2InterfaceStub::DepthMask(GLboolean /* flag */) {
}
void GLES2InterfaceStub::DepthRangef(
GLclampf /* zNear */, GLclampf /* zFar */) {
}
void GLES2InterfaceStub::DetachShader(
GLuint /* program */, GLuint /* shader */) {
}
void GLES2InterfaceStub::Disable(GLenum /* cap */) {
}
void GLES2InterfaceStub::DisableVertexAttribArray(GLuint /* index */) {
}
void GLES2InterfaceStub::DrawArrays(
GLenum /* mode */, GLint /* first */, GLsizei /* count */) {
}
void GLES2InterfaceStub::DrawElements(
GLenum /* mode */, GLsizei /* count */, GLenum /* type */,
const void* /* indices */) {
}
void GLES2InterfaceStub::Enable(GLenum /* cap */) {
}
void GLES2InterfaceStub::EnableVertexAttribArray(GLuint /* index */) {
}
void GLES2InterfaceStub::Finish() {
}
void GLES2InterfaceStub::Flush() {
}
void GLES2InterfaceStub::ShallowFlushCHROMIUM() {
}
void GLES2InterfaceStub::FramebufferRenderbuffer(
GLenum /* target */, GLenum /* attachment */,
GLenum /* renderbuffertarget */, GLuint /* renderbuffer */) {
}
void GLES2InterfaceStub::FramebufferTexture2D(
GLenum /* target */, GLenum /* attachment */, GLenum /* textarget */,
GLuint /* texture */, GLint /* level */) {
}
void GLES2InterfaceStub::FrontFace(GLenum /* mode */) {
}
void GLES2InterfaceStub::GenBuffers(GLsizei /* n */, GLuint* /* buffers */) {
}
void GLES2InterfaceStub::GenerateMipmap(GLenum /* target */) {
}
void GLES2InterfaceStub::GenFramebuffers(
GLsizei /* n */, GLuint* /* framebuffers */) {
}
void GLES2InterfaceStub::GenRenderbuffers(
GLsizei /* n */, GLuint* /* renderbuffers */) {
}
void GLES2InterfaceStub::GenTextures(GLsizei /* n */, GLuint* /* textures */) {
}
void GLES2InterfaceStub::GetActiveAttrib(
GLuint /* program */, GLuint /* index */, GLsizei /* bufsize */,
GLsizei* /* length */, GLint* /* size */, GLenum* /* type */,
char* /* name */) {
}
void GLES2InterfaceStub::GetActiveUniform(
GLuint /* program */, GLuint /* index */, GLsizei /* bufsize */,
GLsizei* /* length */, GLint* /* size */, GLenum* /* type */,
char* /* name */) {
}
void GLES2InterfaceStub::GetAttachedShaders(
GLuint /* program */, GLsizei /* maxcount */, GLsizei* /* count */,
GLuint* /* shaders */) {
}
GLint GLES2InterfaceStub::GetAttribLocation(
GLuint /* program */, const char* /* name */) {
return 0;
}
void GLES2InterfaceStub::GetBooleanv(
GLenum /* pname */, GLboolean* /* params */) {
}
void GLES2InterfaceStub::GetBufferParameteriv(
GLenum /* target */, GLenum /* pname */, GLint* /* params */) {
}
GLenum GLES2InterfaceStub::GetError() {
return 0;
}
void GLES2InterfaceStub::GetFloatv(GLenum /* pname */, GLfloat* /* params */) {
}
void GLES2InterfaceStub::GetFramebufferAttachmentParameteriv(
GLenum /* target */, GLenum /* attachment */, GLenum /* pname */,
GLint* /* params */) {
}
void GLES2InterfaceStub::GetIntegerv(GLenum /* pname */, GLint* /* params */) {
}
void GLES2InterfaceStub::GetProgramiv(
GLuint /* program */, GLenum /* pname */, GLint* /* params */) {
}
void GLES2InterfaceStub::GetProgramInfoLog(
GLuint /* program */, GLsizei /* bufsize */, GLsizei* /* length */,
char* /* infolog */) {
}
void GLES2InterfaceStub::GetRenderbufferParameteriv(
GLenum /* target */, GLenum /* pname */, GLint* /* params */) {
}
void GLES2InterfaceStub::GetShaderiv(
GLuint /* shader */, GLenum /* pname */, GLint* /* params */) {
}
void GLES2InterfaceStub::GetShaderInfoLog(
GLuint /* shader */, GLsizei /* bufsize */, GLsizei* /* length */,
char* /* infolog */) {
}
void GLES2InterfaceStub::GetShaderPrecisionFormat(
GLenum /* shadertype */, GLenum /* precisiontype */, GLint* /* range */,
GLint* /* precision */) {
}
void GLES2InterfaceStub::GetShaderSource(
GLuint /* shader */, GLsizei /* bufsize */, GLsizei* /* length */,
char* /* source */) {
}
const GLubyte* GLES2InterfaceStub::GetString(GLenum /* name */) {
return 0;
}
void GLES2InterfaceStub::GetTexParameterfv(
GLenum /* target */, GLenum /* pname */, GLfloat* /* params */) {
}
void GLES2InterfaceStub::GetTexParameteriv(
GLenum /* target */, GLenum /* pname */, GLint* /* params */) {
}
void GLES2InterfaceStub::GetUniformfv(
GLuint /* program */, GLint /* location */, GLfloat* /* params */) {
}
void GLES2InterfaceStub::GetUniformiv(
GLuint /* program */, GLint /* location */, GLint* /* params */) {
}
GLint GLES2InterfaceStub::GetUniformLocation(
GLuint /* program */, const char* /* name */) {
return 0;
}
void GLES2InterfaceStub::GetVertexAttribfv(
GLuint /* index */, GLenum /* pname */, GLfloat* /* params */) {
}
void GLES2InterfaceStub::GetVertexAttribiv(
GLuint /* index */, GLenum /* pname */, GLint* /* params */) {
}
void GLES2InterfaceStub::GetVertexAttribPointerv(
GLuint /* index */, GLenum /* pname */, void** /* pointer */) {
}
void GLES2InterfaceStub::Hint(GLenum /* target */, GLenum /* mode */) {
}
GLboolean GLES2InterfaceStub::IsBuffer(GLuint /* buffer */) {
return 0;
}
GLboolean GLES2InterfaceStub::IsEnabled(GLenum /* cap */) {
return 0;
}
GLboolean GLES2InterfaceStub::IsFramebuffer(GLuint /* framebuffer */) {
return 0;
}
GLboolean GLES2InterfaceStub::IsProgram(GLuint /* program */) {
return 0;
}
GLboolean GLES2InterfaceStub::IsRenderbuffer(GLuint /* renderbuffer */) {
return 0;
}
GLboolean GLES2InterfaceStub::IsShader(GLuint /* shader */) {
return 0;
}
GLboolean GLES2InterfaceStub::IsTexture(GLuint /* texture */) {
return 0;
}
void GLES2InterfaceStub::LineWidth(GLfloat /* width */) {
}
void GLES2InterfaceStub::LinkProgram(GLuint /* program */) {
}
void GLES2InterfaceStub::PixelStorei(GLenum /* pname */, GLint /* param */) {
}
void GLES2InterfaceStub::PolygonOffset(
GLfloat /* factor */, GLfloat /* units */) {
}
void GLES2InterfaceStub::ReadPixels(
GLint /* x */, GLint /* y */, GLsizei /* width */, GLsizei /* height */,
GLenum /* format */, GLenum /* type */, void* /* pixels */) {
}
void GLES2InterfaceStub::ReleaseShaderCompiler() {
}
void GLES2InterfaceStub::RenderbufferStorage(
GLenum /* target */, GLenum /* internalformat */, GLsizei /* width */,
GLsizei /* height */) {
}
void GLES2InterfaceStub::SampleCoverage(
GLclampf /* value */, GLboolean /* invert */) {
}
void GLES2InterfaceStub::Scissor(
GLint /* x */, GLint /* y */, GLsizei /* width */, GLsizei /* height */) {
}
void GLES2InterfaceStub::ShaderBinary(
GLsizei /* n */, const GLuint* /* shaders */, GLenum /* binaryformat */,
const void* /* binary */, GLsizei /* length */) {
}
void GLES2InterfaceStub::ShaderSource(
GLuint /* shader */, GLsizei /* count */, const char** /* str */,
const GLint* /* length */) {
}
void GLES2InterfaceStub::StencilFunc(
GLenum /* func */, GLint /* ref */, GLuint /* mask */) {
}
void GLES2InterfaceStub::StencilFuncSeparate(
GLenum /* face */, GLenum /* func */, GLint /* ref */, GLuint /* mask */) {
}
void GLES2InterfaceStub::StencilMask(GLuint /* mask */) {
}
void GLES2InterfaceStub::StencilMaskSeparate(
GLenum /* face */, GLuint /* mask */) {
}
void GLES2InterfaceStub::StencilOp(
GLenum /* fail */, GLenum /* zfail */, GLenum /* zpass */) {
}
void GLES2InterfaceStub::StencilOpSeparate(
GLenum /* face */, GLenum /* fail */, GLenum /* zfail */,
GLenum /* zpass */) {
}
void GLES2InterfaceStub::TexImage2D(
GLenum /* target */, GLint /* level */, GLint /* internalformat */,
GLsizei /* width */, GLsizei /* height */, GLint /* border */,
GLenum /* format */, GLenum /* type */, const void* /* pixels */) {
}
void GLES2InterfaceStub::TexParameterf(
GLenum /* target */, GLenum /* pname */, GLfloat /* param */) {
}
void GLES2InterfaceStub::TexParameterfv(
GLenum /* target */, GLenum /* pname */, const GLfloat* /* params */) {
}
void GLES2InterfaceStub::TexParameteri(
GLenum /* target */, GLenum /* pname */, GLint /* param */) {
}
void GLES2InterfaceStub::TexParameteriv(
GLenum /* target */, GLenum /* pname */, const GLint* /* params */) {
}
void GLES2InterfaceStub::TexSubImage2D(
GLenum /* target */, GLint /* level */, GLint /* xoffset */,
GLint /* yoffset */, GLsizei /* width */, GLsizei /* height */,
GLenum /* format */, GLenum /* type */, const void* /* pixels */) {
}
void GLES2InterfaceStub::Uniform1f(GLint /* location */, GLfloat /* x */) {
}
void GLES2InterfaceStub::Uniform1fv(
GLint /* location */, GLsizei /* count */, const GLfloat* /* v */) {
}
void GLES2InterfaceStub::Uniform1i(GLint /* location */, GLint /* x */) {
}
void GLES2InterfaceStub::Uniform1iv(
GLint /* location */, GLsizei /* count */, const GLint* /* v */) {
}
void GLES2InterfaceStub::Uniform2f(
GLint /* location */, GLfloat /* x */, GLfloat /* y */) {
}
void GLES2InterfaceStub::Uniform2fv(
GLint /* location */, GLsizei /* count */, const GLfloat* /* v */) {
}
void GLES2InterfaceStub::Uniform2i(
GLint /* location */, GLint /* x */, GLint /* y */) {
}
void GLES2InterfaceStub::Uniform2iv(
GLint /* location */, GLsizei /* count */, const GLint* /* v */) {
}
void GLES2InterfaceStub::Uniform3f(
GLint /* location */, GLfloat /* x */, GLfloat /* y */, GLfloat /* z */) {
}
void GLES2InterfaceStub::Uniform3fv(
GLint /* location */, GLsizei /* count */, const GLfloat* /* v */) {
}
void GLES2InterfaceStub::Uniform3i(
GLint /* location */, GLint /* x */, GLint /* y */, GLint /* z */) {
}
void GLES2InterfaceStub::Uniform3iv(
GLint /* location */, GLsizei /* count */, const GLint* /* v */) {
}
void GLES2InterfaceStub::Uniform4f(
GLint /* location */, GLfloat /* x */, GLfloat /* y */, GLfloat /* z */,
GLfloat /* w */) {
}
void GLES2InterfaceStub::Uniform4fv(
GLint /* location */, GLsizei /* count */, const GLfloat* /* v */) {
}
void GLES2InterfaceStub::Uniform4i(
GLint /* location */, GLint /* x */, GLint /* y */, GLint /* z */,
GLint /* w */) {
}
void GLES2InterfaceStub::Uniform4iv(
GLint /* location */, GLsizei /* count */, const GLint* /* v */) {
}
void GLES2InterfaceStub::UniformMatrix2fv(
GLint /* location */, GLsizei /* count */, GLboolean /* transpose */,
const GLfloat* /* value */) {
}
void GLES2InterfaceStub::UniformMatrix3fv(
GLint /* location */, GLsizei /* count */, GLboolean /* transpose */,
const GLfloat* /* value */) {
}
void GLES2InterfaceStub::UniformMatrix4fv(
GLint /* location */, GLsizei /* count */, GLboolean /* transpose */,
const GLfloat* /* value */) {
}
void GLES2InterfaceStub::UseProgram(GLuint /* program */) {
}
void GLES2InterfaceStub::ValidateProgram(GLuint /* program */) {
}
void GLES2InterfaceStub::VertexAttrib1f(GLuint /* indx */, GLfloat /* x */) {
}
void GLES2InterfaceStub::VertexAttrib1fv(
GLuint /* indx */, const GLfloat* /* values */) {
}
void GLES2InterfaceStub::VertexAttrib2f(
GLuint /* indx */, GLfloat /* x */, GLfloat /* y */) {
}
void GLES2InterfaceStub::VertexAttrib2fv(
GLuint /* indx */, const GLfloat* /* values */) {
}
void GLES2InterfaceStub::VertexAttrib3f(
GLuint /* indx */, GLfloat /* x */, GLfloat /* y */, GLfloat /* z */) {
}
void GLES2InterfaceStub::VertexAttrib3fv(
GLuint /* indx */, const GLfloat* /* values */) {
}
void GLES2InterfaceStub::VertexAttrib4f(
GLuint /* indx */, GLfloat /* x */, GLfloat /* y */, GLfloat /* z */,
GLfloat /* w */) {
}
void GLES2InterfaceStub::VertexAttrib4fv(
GLuint /* indx */, const GLfloat* /* values */) {
}
void GLES2InterfaceStub::VertexAttribPointer(
GLuint /* indx */, GLint /* size */, GLenum /* type */,
GLboolean /* normalized */, GLsizei /* stride */, const void* /* ptr */) {
}
void GLES2InterfaceStub::Viewport(
GLint /* x */, GLint /* y */, GLsizei /* width */, GLsizei /* height */) {
}
void GLES2InterfaceStub::BlitFramebufferEXT(
GLint /* srcX0 */, GLint /* srcY0 */, GLint /* srcX1 */, GLint /* srcY1 */,
GLint /* dstX0 */, GLint /* dstY0 */, GLint /* dstX1 */, GLint /* dstY1 */,
GLbitfield /* mask */, GLenum /* filter */) {
}
void GLES2InterfaceStub::RenderbufferStorageMultisampleEXT(
GLenum /* target */, GLsizei /* samples */, GLenum /* internalformat */,
GLsizei /* width */, GLsizei /* height */) {
}
void GLES2InterfaceStub::TexStorage2DEXT(
GLenum /* target */, GLsizei /* levels */, GLenum /* internalFormat */,
GLsizei /* width */, GLsizei /* height */) {
}
void GLES2InterfaceStub::GenQueriesEXT(
GLsizei /* n */, GLuint* /* queries */) {
}
void GLES2InterfaceStub::DeleteQueriesEXT(
GLsizei /* n */, const GLuint* /* queries */) {
}
GLboolean GLES2InterfaceStub::IsQueryEXT(GLuint /* id */) {
return 0;
}
void GLES2InterfaceStub::BeginQueryEXT(GLenum /* target */, GLuint /* id */) {
}
void GLES2InterfaceStub::EndQueryEXT(GLenum /* target */) {
}
void GLES2InterfaceStub::GetQueryivEXT(
GLenum /* target */, GLenum /* pname */, GLint* /* params */) {
}
void GLES2InterfaceStub::GetQueryObjectuivEXT(
GLuint /* id */, GLenum /* pname */, GLuint* /* params */) {
}
void GLES2InterfaceStub::InsertEventMarkerEXT(
GLsizei /* length */, const GLchar* /* marker */) {
}
void GLES2InterfaceStub::PushGroupMarkerEXT(
GLsizei /* length */, const GLchar* /* marker */) {
}
void GLES2InterfaceStub::PopGroupMarkerEXT() {
}
void GLES2InterfaceStub::GenVertexArraysOES(
GLsizei /* n */, GLuint* /* arrays */) {
}
void GLES2InterfaceStub::DeleteVertexArraysOES(
GLsizei /* n */, const GLuint* /* arrays */) {
}
GLboolean GLES2InterfaceStub::IsVertexArrayOES(GLuint /* array */) {
return 0;
}
void GLES2InterfaceStub::BindVertexArrayOES(GLuint /* array */) {
}
void GLES2InterfaceStub::SwapBuffers() {
}
GLuint GLES2InterfaceStub::GetMaxValueInBufferCHROMIUM(
GLuint /* buffer_id */, GLsizei /* count */, GLenum /* type */,
GLuint /* offset */) {
return 0;
}
void GLES2InterfaceStub::GenSharedIdsCHROMIUM(
GLuint /* namespace_id */, GLuint /* id_offset */, GLsizei /* n */,
GLuint* /* ids */) {
}
void GLES2InterfaceStub::DeleteSharedIdsCHROMIUM(
GLuint /* namespace_id */, GLsizei /* n */, const GLuint* /* ids */) {
}
void GLES2InterfaceStub::RegisterSharedIdsCHROMIUM(
GLuint /* namespace_id */, GLsizei /* n */, const GLuint* /* ids */) {
}
GLboolean GLES2InterfaceStub::EnableFeatureCHROMIUM(
const char* /* feature */) {
return 0;
}
void* GLES2InterfaceStub::MapBufferSubDataCHROMIUM(
GLuint /* target */, GLintptr /* offset */, GLsizeiptr /* size */,
GLenum /* access */) {
return 0;
}
void GLES2InterfaceStub::UnmapBufferSubDataCHROMIUM(const void* /* mem */) {
}
void* GLES2InterfaceStub::MapTexSubImage2DCHROMIUM(
GLenum /* target */, GLint /* level */, GLint /* xoffset */,
GLint /* yoffset */, GLsizei /* width */, GLsizei /* height */,
GLenum /* format */, GLenum /* type */, GLenum /* access */) {
return 0;
}
void GLES2InterfaceStub::UnmapTexSubImage2DCHROMIUM(const void* /* mem */) {
}
void GLES2InterfaceStub::ResizeCHROMIUM(
GLuint /* width */, GLuint /* height */) {
}
const GLchar* GLES2InterfaceStub::GetRequestableExtensionsCHROMIUM() {
return 0;
}
void GLES2InterfaceStub::RequestExtensionCHROMIUM(
const char* /* extension */) {
}
void GLES2InterfaceStub::RateLimitOffscreenContextCHROMIUM() {
}
void GLES2InterfaceStub::GetMultipleIntegervCHROMIUM(
const GLenum* /* pnames */, GLuint /* count */, GLint* /* results */,
GLsizeiptr /* size */) {
}
void GLES2InterfaceStub::GetProgramInfoCHROMIUM(
GLuint /* program */, GLsizei /* bufsize */, GLsizei* /* size */,
void* /* info */) {
}
GLuint GLES2InterfaceStub::CreateStreamTextureCHROMIUM(GLuint /* texture */) {
return 0;
}
void GLES2InterfaceStub::DestroyStreamTextureCHROMIUM(GLuint /* texture */) {
}
void GLES2InterfaceStub::GetTranslatedShaderSourceANGLE(
GLuint /* shader */, GLsizei /* bufsize */, GLsizei* /* length */,
char* /* source */) {
}
void GLES2InterfaceStub::PostSubBufferCHROMIUM(
GLint /* x */, GLint /* y */, GLint /* width */, GLint /* height */) {
}
void GLES2InterfaceStub::TexImageIOSurface2DCHROMIUM(
GLenum /* target */, GLsizei /* width */, GLsizei /* height */,
GLuint /* ioSurfaceId */, GLuint /* plane */) {
}
void GLES2InterfaceStub::CopyTextureCHROMIUM(
GLenum /* target */, GLenum /* source_id */, GLenum /* dest_id */,
GLint /* level */, GLint /* internalformat */) {
}
void GLES2InterfaceStub::DrawArraysInstancedANGLE(
GLenum /* mode */, GLint /* first */, GLsizei /* count */,
GLsizei /* primcount */) {
}
void GLES2InterfaceStub::DrawElementsInstancedANGLE(
GLenum /* mode */, GLsizei /* count */, GLenum /* type */,
const void* /* indices */, GLsizei /* primcount */) {
}
void GLES2InterfaceStub::VertexAttribDivisorANGLE(
GLuint /* index */, GLuint /* divisor */) {
}
void GLES2InterfaceStub::GenMailboxCHROMIUM(GLbyte* /* mailbox */) {
}
void GLES2InterfaceStub::ProduceTextureCHROMIUM(
GLenum /* target */, const GLbyte* /* mailbox */) {
}
void GLES2InterfaceStub::ConsumeTextureCHROMIUM(
GLenum /* target */, const GLbyte* /* mailbox */) {
}
void GLES2InterfaceStub::BindUniformLocationCHROMIUM(
GLuint /* program */, GLint /* location */, const char* /* name */) {
}
#endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_INTERFACE_STUB_IMPL_AUTOGEN_H_

@ -74,6 +74,8 @@ static GLES2Util::EnumToString enum_to_string_table[] = {
{ 0x88BB, "GL_BUFFER_ACCESS_OES", },
{ 0x88BC, "GL_BUFFER_MAPPED_OES", },
{ 0x88BD, "GL_BUFFER_MAP_POINTER_OES", },
{ 0x904A, "GL_GPU_MEMORY_INFO_EVICTION_COUNT_NVX", },
{ 0x904B, "GL_GPU_MEMORY_INFO_EVICTED_MEMORY_NVX", },
{ 0x0C10, "GL_SCISSOR_BOX", },
{ 0x0C11, "GL_SCISSOR_TEST", },
{ 0x80000000, "GL_MULTISAMPLE_BUFFER_BIT7_QCOM", },
@ -113,6 +115,9 @@ static GLES2Util::EnumToString enum_to_string_table[] = {
{ 0x8D40, "GL_FRAMEBUFFER", },
{ 0x8D41, "GL_RENDERBUFFER", },
{ 0x0BD0, "GL_DITHER", },
{ 0x9047, "GL_GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX", },
{ 0x9049, "GL_GPU_MEMORY_INFO_CURRENT_AVAILABLE_VIDMEM_NVX", },
{ 0x9048, "GL_GPU_MEMORY_INFO_TOTAL_AVAILABLE_MEMORY_NVX", },
{ 0x1801, "GL_DEPTH_EXT", },
{ 0x1800, "GL_COLOR_EXT", },
{ 0x1802, "GL_STENCIL_EXT", },

@ -149,6 +149,8 @@
'command_buffer/client/client_test_helper.h',
'command_buffer/client/cmd_buffer_helper_test.cc',
'command_buffer/client/fenced_allocator_test.cc',
'command_buffer/client/gles2_interface_stub.cc',
'command_buffer/client/gles2_interface_stub.h',
'command_buffer/client/gles2_implementation_unittest.cc',
'command_buffer/client/mapped_memory_unittest.cc',
'command_buffer/client/query_tracker_unittest.cc',

@ -23,6 +23,9 @@
'command_buffer/client/gles2_implementation_autogen.h',
'command_buffer/client/gles2_implementation.cc',
'command_buffer/client/gles2_implementation.h',
'command_buffer/client/gles2_implementation_impl_autogen.h',
'command_buffer/client/gles2_interface.h',
'command_buffer/client/gles2_interface.cc',
'command_buffer/client/program_info_manager.cc',
'command_buffer/client/program_info_manager.h',
'command_buffer/client/query_tracker.cc',

@ -37,6 +37,7 @@
'<(DEPTH)/gpu/command_buffer/client/gles2_c_lib.cc',
'<(DEPTH)/gpu/command_buffer/client/gles2_cmd_helper.cc',
'<(DEPTH)/gpu/command_buffer/client/gles2_implementation.cc',
'<(DEPTH)/gpu/command_buffer/client/gles2_interface.cc',
'<(DEPTH)/gpu/command_buffer/client/program_info_manager.cc',
'<(DEPTH)/gpu/command_buffer/client/transfer_buffer.cc',
'<(DEPTH)/gpu/command_buffer/client/gles2_lib.cc',