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

Side by Side Diff: webkit/plugins/ppapi/ppb_gles_chromium_extension_impl.cc

Issue 6080012: Expose Map/UnmapTexSubImage2DCHROMIUM to pepper plugins (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // 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
6
7 #include "webkit/plugins/ppapi/ppb_gles_chromium_extension_impl.h"
8
9 #include "gpu/command_buffer/client/gles2_implementation.h"
10 #include "ppapi/c/dev/ppb_gles_chromium_extension_dev.h"
11 #include "webkit/plugins/ppapi/ppb_context_3d_impl.h"
12
13 namespace webkit {
14 namespace ppapi {
15
16 namespace {
17
18 void* MapTexSubImage2DCHROMIUM(
19 PP_Resource context_id,
brettw 2011/01/06 17:58:24 Should be indented 4 spaces.
piman 2011/01/06 22:31:12 Done.
20 GLenum target,
21 GLint level,
22 GLint xoffset,
23 GLint yoffset,
24 GLsizei width,
25 GLsizei height,
26 GLenum format,
27 GLenum type,
28 GLenum access) {
29 scoped_refptr<PPB_Context3D_Impl> context =
30 Resource::GetAs<PPB_Context3D_Impl>(context_id);
31 return context->gles2_impl()->MapTexSubImage2DCHROMIUM(
32 target, level, xoffset, yoffset, width, height, format, type, access);
33 }
34
35 void UnmapTexSubImage2DCHROMIUM(PP_Resource context_id, const void* mem) {
36 scoped_refptr<PPB_Context3D_Impl> context =
37 Resource::GetAs<PPB_Context3D_Impl>(context_id);
38 context->gles2_impl()->UnmapTexSubImage2DCHROMIUM(mem);
39 }
40
41 const struct PPB_GLESChromiumExtension_Dev ppb_gles_chromium_extension = {
42 &MapTexSubImage2DCHROMIUM,
43 &UnmapTexSubImage2DCHROMIUM
44 };
45
46 } // namespace
47
48 const PPB_GLESChromiumExtension_Dev*
49 PPB_GLESChromiumExtension_Impl::GetInterface() {
50 return &ppb_gles_chromium_extension;
51 }
52
53 } // namespace ppapi
54 } // namespace webkit
55
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698