Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(268)

Unified Diff: webkit/plugins/ppapi/ppb_gles_chromium_texture_mapping_impl.cc

Issue 7206016: Convert most remaining resources to use the API/thunk system. The significant (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webkit/plugins/ppapi/ppb_gles_chromium_texture_mapping_impl.cc
===================================================================
--- webkit/plugins/ppapi/ppb_gles_chromium_texture_mapping_impl.cc (revision 89610)
+++ webkit/plugins/ppapi/ppb_gles_chromium_texture_mapping_impl.cc (working copy)
@@ -1,53 +0,0 @@
-// 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 "webkit/plugins/ppapi/ppb_gles_chromium_texture_mapping_impl.h"
-
-#include "gpu/command_buffer/client/gles2_implementation.h"
-#include "ppapi/c/dev/ppb_gles_chromium_texture_mapping_dev.h"
-#include "webkit/plugins/ppapi/ppb_context_3d_impl.h"
-
-namespace webkit {
-namespace ppapi {
-
-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) {
- 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_GLESChromiumTextureMapping_Dev ppb_gles_chromium_extension = {
- &MapTexSubImage2DCHROMIUM,
- &UnmapTexSubImage2DCHROMIUM
-};
-
-} // namespace
-
-const PPB_GLESChromiumTextureMapping_Dev*
-PPB_GLESChromiumTextureMapping_Impl::GetInterface() {
- return &ppb_gles_chromium_extension;
-}
-
-} // namespace ppapi
-} // namespace webkit
-

Powered by Google App Engine
This is Rietveld 408576698