| Index: ppapi/proxy/ppb_gles_chromium_texture_mapping_proxy.cc
|
| ===================================================================
|
| --- ppapi/proxy/ppb_gles_chromium_texture_mapping_proxy.cc (revision 89672)
|
| +++ ppapi/proxy/ppb_gles_chromium_texture_mapping_proxy.cc (working copy)
|
| @@ -1,80 +0,0 @@
|
| -// Copyright (c) 2011 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 "ppapi/proxy/ppb_gles_chromium_texture_mapping_proxy.h"
|
| -
|
| -#include "gpu/command_buffer/client/gles2_implementation.h"
|
| -#include "ppapi/c/pp_errors.h"
|
| -#include "ppapi/c/pp_resource.h"
|
| -#include "ppapi/c/dev/ppb_gles_chromium_texture_mapping_dev.h"
|
| -#include "ppapi/proxy/plugin_dispatcher.h"
|
| -#include "ppapi/proxy/plugin_resource.h"
|
| -#include "ppapi/proxy/ppb_context_3d_proxy.h"
|
| -
|
| -namespace pp {
|
| -namespace proxy {
|
| -
|
| -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) {
|
| - Context3D* context = PluginResource::GetAs<Context3D>(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) {
|
| - Context3D* context = PluginResource::GetAs<Context3D>(context_id);
|
| - context->gles2_impl()->UnmapTexSubImage2DCHROMIUM(mem);
|
| -}
|
| -
|
| -const struct PPB_GLESChromiumTextureMapping_Dev gles2_chromium_tm_interface = {
|
| - MapTexSubImage2DCHROMIUM,
|
| - UnmapTexSubImage2DCHROMIUM
|
| -};
|
| -
|
| -InterfaceProxy* CreateGLESChromiumTextureMappingProxy(
|
| - Dispatcher* dispatcher,
|
| - const void* target_interface) {
|
| - return new PPB_GLESChromiumTextureMapping_Proxy(dispatcher, target_interface);
|
| -}
|
| -
|
| -} // namespace
|
| -
|
| -PPB_GLESChromiumTextureMapping_Proxy::PPB_GLESChromiumTextureMapping_Proxy(
|
| - Dispatcher* dispatcher,
|
| - const void* target_interface)
|
| - : InterfaceProxy(dispatcher, target_interface) {
|
| -}
|
| -
|
| -PPB_GLESChromiumTextureMapping_Proxy::~PPB_GLESChromiumTextureMapping_Proxy() {
|
| -}
|
| -
|
| -// static
|
| -const InterfaceProxy::Info* PPB_GLESChromiumTextureMapping_Proxy::GetInfo() {
|
| - static const Info info = {
|
| - &gles2_chromium_tm_interface,
|
| - PPB_GLES_CHROMIUM_TEXTURE_MAPPING_DEV_INTERFACE,
|
| - INTERFACE_ID_PPB_GLES_CHROMIUM_TM,
|
| - false,
|
| - &CreateGLESChromiumTextureMappingProxy,
|
| - };
|
| - return &info;
|
| -}
|
| -
|
| -bool PPB_GLESChromiumTextureMapping_Proxy::OnMessageReceived(
|
| - const IPC::Message& msg) {
|
| - return false;
|
| -}
|
| -
|
| -} // namespace proxy
|
| -} // namespace pp
|
|
|