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

Side by Side Diff: ppapi/c/dev/ppb_gles_chromium_texture_mapping_dev.h

Issue 10354004: Move gles2 extensions out of dev. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PPAPI_C_DEV_PPB_GLES_CHROMIUM_TEXTURE_MAPPING_DEV_H_ 5 #ifndef PPAPI_C_DEV_PPB_GLES_CHROMIUM_TEXTURE_MAPPING_DEV_H_
6 #define PPAPI_C_DEV_PPB_GLES_CHROMIUM_TEXTURE_MAPPING_DEV_H_ 6 #define PPAPI_C_DEV_PPB_GLES_CHROMIUM_TEXTURE_MAPPING_DEV_H_
7 7
8 #include "ppapi/c/pp_resource.h" 8 #include "ppapi/c/pp_resource.h"
9 #include "ppapi/c/ppb_opengles2.h" 9 #include "ppapi/c/ppb_opengles2.h"
10 10
11 #define PPB_GLES_CHROMIUM_TEXTURE_MAPPING_DEV_INTERFACE_0_1 \ 11 #define PPB_GLES_CHROMIUM_TEXTURE_MAPPING_DEV_INTERFACE_0_1 \
12 "PPB_GLESChromiumTextureMapping(Dev);0.1" 12 "PPB_GLESChromiumTextureMapping(Dev);0.1"
13 #define PPB_GLES_CHROMIUM_TEXTURE_MAPPING_DEV_INTERFACE \ 13 #define PPB_GLES_CHROMIUM_TEXTURE_MAPPING_DEV_INTERFACE \
14 PPB_GLES_CHROMIUM_TEXTURE_MAPPING_DEV_INTERFACE_0_1 14 PPB_GLES_CHROMIUM_TEXTURE_MAPPING_DEV_INTERFACE_0_1
15 15
16 // This interface is deprecated. Please use 16 // PPB_GLES_CHROMIUM_TEXTURE_MAPPING_DEV_INTERFACE is deprecated. Please use
17 // PPB_OPENGLES2_CHROMIUMMAPSUB_DEV_INTERFACE_1_0 instead. 17 // PPB_OPENGLES2_CHROMIUMMAPSUB_INTERFACE instead.
18
19 #define PPB_OPENGLES2_CHROMIUMMAPSUB_DEV_INTERFACE_1_0 \
20 "PPB_OpenGLES2ChromiumMapSub(Dev);1.0"
21
22 // PPB_OPENGLES2_CHROMIUMMAPSUB_DEV_INTERFACE_1_0 is also deprecated. Please
23 // use PPB_OPENGLES2_CHROMIUMMAPSUB_INTERFACE instead.
18 24
19 struct PPB_GLESChromiumTextureMapping_Dev_0_1 { 25 struct PPB_GLESChromiumTextureMapping_Dev_0_1 {
20 // Maps the sub-image of a texture. 'level', 'xoffset', 'yoffset', 'width', 26 // Maps the sub-image of a texture. 'level', 'xoffset', 'yoffset', 'width',
21 // 'height', 'format' and 'type' correspond to the similarly named parameters 27 // 'height', 'format' and 'type' correspond to the similarly named parameters
22 // of TexSubImage2D, and define the sub-image region, as well as the format of 28 // of TexSubImage2D, and define the sub-image region, as well as the format of
23 // the data. 'access' must be one of GL_READ_ONLY, GL_WRITE_ONLY or 29 // the data. 'access' must be one of GL_READ_ONLY, GL_WRITE_ONLY or
24 // GL_READ_WRITE. If READ is included, the returned buffer will contain the 30 // GL_READ_WRITE. If READ is included, the returned buffer will contain the
25 // pixel data for the sub-image. If WRITE is included, the pixel data for the 31 // pixel data for the sub-image. If WRITE is included, the pixel data for the
26 // sub-image will be updated to the contents of the buffer when 32 // sub-image will be updated to the contents of the buffer when
27 // UnmapTexSubImage2DCHROMIUM is called. NOTE: for a GL_WRITE_ONLY map, it 33 // UnmapTexSubImage2DCHROMIUM is called. NOTE: for a GL_WRITE_ONLY map, it
(...skipping 13 matching lines...) Expand all
41 // Unmaps the sub-image of a texture. If the sub-image was mapped with one of 47 // Unmaps the sub-image of a texture. If the sub-image was mapped with one of
42 // the WRITE accesses, the pixels are updated at this time to the contents of 48 // the WRITE accesses, the pixels are updated at this time to the contents of
43 // the buffer. 'mem' must be the pointer returned by MapTexSubImage2DCHROMIUM. 49 // the buffer. 'mem' must be the pointer returned by MapTexSubImage2DCHROMIUM.
44 void (*UnmapTexSubImage2DCHROMIUM)(PP_Resource context, const void* mem); 50 void (*UnmapTexSubImage2DCHROMIUM)(PP_Resource context, const void* mem);
45 }; 51 };
46 52
47 typedef struct PPB_GLESChromiumTextureMapping_Dev_0_1 53 typedef struct PPB_GLESChromiumTextureMapping_Dev_0_1
48 PPB_GLESChromiumTextureMapping_Dev; 54 PPB_GLESChromiumTextureMapping_Dev;
49 55
50 #endif // PPAPI_C_DEV_PPB_GLES_CHROMIUM_TEXTURE_MAPPING_DEV_H_ 56 #endif // PPAPI_C_DEV_PPB_GLES_CHROMIUM_TEXTURE_MAPPING_DEV_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698