| Index: src/shared/ppapi_proxy/plugin_ppb_gles_extensions.cc
|
| diff --git a/src/shared/ppapi_proxy/plugin_ppb_gles_extensions.cc b/src/shared/ppapi_proxy/plugin_ppb_gles_extensions.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d300f8654feccd5508eac594328daa623234b4d9
|
| --- /dev/null
|
| +++ b/src/shared/ppapi_proxy/plugin_ppb_gles_extensions.cc
|
| @@ -0,0 +1,50 @@
|
| +// 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.
|
| +
|
| +#include "native_client/src/shared/ppapi_proxy/plugin_ppb_gles_extensions.h"
|
| +
|
| +#include "gpu/command_buffer/client/gles2_implementation.h"
|
| +#include "native_client/src/shared/ppapi_proxy/plugin_context_3d.h"
|
| +
|
| +namespace ppapi_proxy {
|
| +
|
| +namespace GLESChromiumTextureMapping {
|
| +
|
| +namespace {
|
| +
|
| +void* MapTexSubImage2DCHROMIUM(
|
| + PP_Resource context_id,
|
| + GLenum target,
|
| + GLint level,
|
| + GLint xoffset,
|
| + GLint yoffset,
|
| + GLsizei width,
|
| + GLsizei height,
|
| + GLenum format,
|
| + GLenum type,
|
| + GLenum access) {
|
| + return PluginResource::GetAs<PluginContext3D>(context_id)->impl()->
|
| + MapTexSubImage2DCHROMIUM(target, level, xoffset, yoffset, width, height,
|
| + format, type, access);
|
| +}
|
| +
|
| +void UnmapTexSubImage2DCHROMIUM(PP_Resource context_id, const void* mem) {
|
| + PluginResource::GetAs<PluginContext3D>(context_id)->impl()->
|
| + UnmapTexSubImage2DCHROMIUM(mem);
|
| +}
|
| +
|
| +} // namespace
|
| +
|
| +const PPB_GLESChromiumTextureMapping_Dev* GetInterface() {
|
| + static const struct PPB_GLESChromiumTextureMapping_Dev interface_functions = {
|
| + &MapTexSubImage2DCHROMIUM,
|
| + &UnmapTexSubImage2DCHROMIUM
|
| + };
|
| + return &interface_functions;
|
| +}
|
| +
|
| +} // namespace GLESChromiumTextureMapping
|
| +
|
| +} // namespace ppapi_proxy
|
| +
|
|
|