Chromium Code Reviews| Index: webkit/plugins/ppapi/ppb_gles_chromium_extension_impl.cc |
| diff --git a/webkit/plugins/ppapi/ppb_gles_chromium_extension_impl.cc b/webkit/plugins/ppapi/ppb_gles_chromium_extension_impl.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a617e53195f37634c7edcc53de451e4951919a7c |
| --- /dev/null |
| +++ b/webkit/plugins/ppapi/ppb_gles_chromium_extension_impl.cc |
| @@ -0,0 +1,55 @@ |
| +// Copyright (c) 2010 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. DO NOT EDIT! |
|
apatrick
2011/01/06 16:50:30
Are the changes to the python script that generate
piman
2011/01/06 22:31:12
The comment was copy/paste from existing code and
|
| + |
| +#include "webkit/plugins/ppapi/ppb_gles_chromium_extension_impl.h" |
| + |
| +#include "gpu/command_buffer/client/gles2_implementation.h" |
| +#include "ppapi/c/dev/ppb_gles_chromium_extension_dev.h" |
| +#include "webkit/plugins/ppapi/ppb_context_3d_impl.h" |
| + |
| +namespace webkit { |
| +namespace ppapi { |
| + |
| +namespace { |
| + |
| +void* MapTexSubImage2DCHROMIUM( |
| + PP_Resource context_id, |
|
brettw
2011/01/06 17:58:24
Should be indented 4 spaces.
piman
2011/01/06 22:31:12
Done.
|
| + GLenum target, |
| + GLint level, |
| + GLint xoffset, |
| + GLint yoffset, |
| + GLsizei width, |
| + GLsizei height, |
| + GLenum format, |
| + GLenum type, |
| + GLenum access) { |
| + scoped_refptr<PPB_Context3D_Impl> context = |
| + Resource::GetAs<PPB_Context3D_Impl>(context_id); |
| + return context->gles2_impl()->MapTexSubImage2DCHROMIUM( |
| + target, level, xoffset, yoffset, width, height, format, type, access); |
| +} |
| + |
| +void UnmapTexSubImage2DCHROMIUM(PP_Resource context_id, const void* mem) { |
| + scoped_refptr<PPB_Context3D_Impl> context = |
| + Resource::GetAs<PPB_Context3D_Impl>(context_id); |
| + context->gles2_impl()->UnmapTexSubImage2DCHROMIUM(mem); |
| +} |
| + |
| +const struct PPB_GLESChromiumExtension_Dev ppb_gles_chromium_extension = { |
| + &MapTexSubImage2DCHROMIUM, |
| + &UnmapTexSubImage2DCHROMIUM |
| +}; |
| + |
| +} // namespace |
| + |
| +const PPB_GLESChromiumExtension_Dev* |
| +PPB_GLESChromiumExtension_Impl::GetInterface() { |
| + return &ppb_gles_chromium_extension; |
| +} |
| + |
| +} // namespace ppapi |
| +} // namespace webkit |
| + |