OLD | NEW |
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 | 5 |
6 /** | 6 /** |
7 * This file defines the <code>PPB_ImageData</code> struct for determining how | 7 * This file defines the <code>PPB_ImageData</code> struct for determining how |
8 * a browser handles image data. | 8 * a browser handles image data. |
9 */ | 9 */ |
10 | 10 |
11 label Chrome { | 11 label Chrome { |
12 M13 = 0.3, | |
13 M14 = 1.0 | 12 M14 = 1.0 |
14 }; | 13 }; |
15 | 14 |
16 /** | 15 /** |
17 * <code>PP_ImageDataFormat</code> is an enumeration of the different types of | 16 * <code>PP_ImageDataFormat</code> is an enumeration of the different types of |
18 * image data formats. | 17 * image data formats. |
19 * | 18 * |
20 * The third part of each enumeration value describes the memory layout from | 19 * The third part of each enumeration value describes the memory layout from |
21 * the lowest address to the highest. For example, BGRA means the B component | 20 * the lowest address to the highest. For example, BGRA means the B component |
22 * is stored in the lowest address, no matter what endianness the platform is | 21 * is stored in the lowest address, no matter what endianness the platform is |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 * This value represents the row width in bytes. This may be different than | 69 * This value represents the row width in bytes. This may be different than |
71 * width * 4 since there may be padding at the end of the lines. | 70 * width * 4 since there may be padding at the end of the lines. |
72 */ | 71 */ |
73 int32_t stride; | 72 int32_t stride; |
74 }; | 73 }; |
75 | 74 |
76 /** | 75 /** |
77 * The <code>PPB_ImageData</code> interface contains pointers to several | 76 * The <code>PPB_ImageData</code> interface contains pointers to several |
78 * functions for determining the browser's treatment of image data. | 77 * functions for determining the browser's treatment of image data. |
79 */ | 78 */ |
80 [version=0.3] | |
81 interface PPB_ImageData { | 79 interface PPB_ImageData { |
82 /** | 80 /** |
83 * GetNativeImageDataFormat() returns the browser's preferred format for | 81 * GetNativeImageDataFormat() returns the browser's preferred format for |
84 * image data. The browser uses this format internally for painting. Other | 82 * image data. The browser uses this format internally for painting. Other |
85 * formats may require internal conversions to paint or may have additional | 83 * formats may require internal conversions to paint or may have additional |
86 * restrictions depending on the function. | 84 * restrictions depending on the function. |
87 * | 85 * |
88 * @return A <code>PP_ImageDataFormat</code> containing the preferred format. | 86 * @return A <code>PP_ImageDataFormat</code> containing the preferred format. |
89 */ | 87 */ |
90 PP_ImageDataFormat GetNativeImageDataFormat(); | 88 PP_ImageDataFormat GetNativeImageDataFormat(); |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 * Unmap is a pointer to a function that unmaps an image data from the module | 173 * Unmap is a pointer to a function that unmaps an image data from the module |
176 * address space. | 174 * address space. |
177 * | 175 * |
178 * @param[in] image_data A <code>PP_Resource</code> corresponding to image | 176 * @param[in] image_data A <code>PP_Resource</code> corresponding to image |
179 * data. | 177 * data. |
180 */ | 178 */ |
181 void Unmap( | 179 void Unmap( |
182 [in] PP_Resource image_data); | 180 [in] PP_Resource image_data); |
183 }; | 181 }; |
184 | 182 |
OLD | NEW |