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

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

Issue 6893022: Add version-specific defines for each C interface. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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
« no previous file with comments | « ppapi/c/dev/ppb_fullscreen_dev.h ('k') | ppapi/c/dev/ppb_graphics_3d_dev.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/dev/ppb_opengles_dev.h" 9 #include "ppapi/c/dev/ppb_opengles_dev.h"
10 10
11 #define PPB_GLES_CHROMIUM_TEXTURE_MAPPING_DEV_INTERFACE "PPB_GLESChromiumTexture Mapping(Dev);0.1" 11 #define PPB_GLES_CHROMIUM_TEXTURE_MAPPING_DEV_INTERFACE_0_1 \
12 "PPB_GLESChromiumTextureMapping(Dev);0.1"
13 #define PPB_GLES_CHROMIUM_TEXTURE_MAPPING_DEV_INTERFACE \
14 PPB_GLES_CHROMIUM_TEXTURE_MAPPING_DEV_INTERFACE_0_1
12 15
13 struct PPB_GLESChromiumTextureMapping_Dev { 16 struct PPB_GLESChromiumTextureMapping_Dev {
14 // Maps the sub-image of a texture. 'level', 'xoffset', 'yoffset', 'width', 17 // Maps the sub-image of a texture. 'level', 'xoffset', 'yoffset', 'width',
15 // 'height', 'format' and 'type' correspond to the similarly named parameters 18 // 'height', 'format' and 'type' correspond to the similarly named parameters
16 // of TexSubImage2D, and define the sub-image region, as well as the format of 19 // of TexSubImage2D, and define the sub-image region, as well as the format of
17 // the data. 'access' must be one of GL_READ_ONLY, GL_WRITE_ONLY or 20 // the data. 'access' must be one of GL_READ_ONLY, GL_WRITE_ONLY or
18 // GL_READ_WRITE. If READ is included, the returned buffer will contain the 21 // GL_READ_WRITE. If READ is included, the returned buffer will contain the
19 // pixel data for the sub-image. If WRITE is included, the pixel data for the 22 // pixel data for the sub-image. If WRITE is included, the pixel data for the
20 // sub-image will be updated to the contents of the buffer when 23 // sub-image will be updated to the contents of the buffer when
21 // UnmapTexSubImage2DCHROMIUM is called. NOTE: for a GL_WRITE_ONLY map, it 24 // UnmapTexSubImage2DCHROMIUM is called. NOTE: for a GL_WRITE_ONLY map, it
(...skipping 10 matching lines...) Expand all
32 GLenum type, 35 GLenum type,
33 GLenum access); 36 GLenum access);
34 37
35 // Unmaps the sub-image of a texture. If the sub-image was mapped with one of 38 // Unmaps the sub-image of a texture. If the sub-image was mapped with one of
36 // the WRITE accesses, the pixels are updated at this time to the contents of 39 // the WRITE accesses, the pixels are updated at this time to the contents of
37 // the buffer. 'mem' must be the pointer returned by MapTexSubImage2DCHROMIUM. 40 // the buffer. 'mem' must be the pointer returned by MapTexSubImage2DCHROMIUM.
38 void (*UnmapTexSubImage2DCHROMIUM)(PP_Resource context, const void* mem); 41 void (*UnmapTexSubImage2DCHROMIUM)(PP_Resource context, const void* mem);
39 }; 42 };
40 43
41 #endif // PPAPI_C_DEV_PPB_GLES_CHROMIUM_TEXTURE_MAPPING_DEV_H_ 44 #endif // PPAPI_C_DEV_PPB_GLES_CHROMIUM_TEXTURE_MAPPING_DEV_H_
OLDNEW
« no previous file with comments | « ppapi/c/dev/ppb_fullscreen_dev.h ('k') | ppapi/c/dev/ppb_graphics_3d_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698