OLD | NEW |
---|---|
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 | 5 |
6 /* From ppb_graphics_2d.idl modified Fri Apr 26 08:49:08 2013. */ | 6 /* From ppb_graphics_2d.idl modified Mon Apr 11 14:10:05 2016. */ |
7 | 7 |
8 #ifndef PPAPI_C_PPB_GRAPHICS_2D_H_ | 8 #ifndef PPAPI_C_PPB_GRAPHICS_2D_H_ |
9 #define PPAPI_C_PPB_GRAPHICS_2D_H_ | 9 #define PPAPI_C_PPB_GRAPHICS_2D_H_ |
10 | 10 |
11 #include "ppapi/c/pp_bool.h" | 11 #include "ppapi/c/pp_bool.h" |
12 #include "ppapi/c/pp_completion_callback.h" | 12 #include "ppapi/c/pp_completion_callback.h" |
13 #include "ppapi/c/pp_instance.h" | 13 #include "ppapi/c/pp_instance.h" |
14 #include "ppapi/c/pp_macros.h" | 14 #include "ppapi/c/pp_macros.h" |
15 #include "ppapi/c/pp_point.h" | 15 #include "ppapi/c/pp_point.h" |
16 #include "ppapi/c/pp_rect.h" | 16 #include "ppapi/c/pp_rect.h" |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
269 /*** | 269 /*** |
270 * GetScale() gets the scale factor that will be applied when painting the | 270 * GetScale() gets the scale factor that will be applied when painting the |
271 * graphics context onto the output device. | 271 * graphics context onto the output device. |
272 * | 272 * |
273 * @param[in] resource A <code>Graphics2D</code> context resource. | 273 * @param[in] resource A <code>Graphics2D</code> context resource. |
274 * | 274 * |
275 * @return Returns the scale factor for the graphics context. If the resource | 275 * @return Returns the scale factor for the graphics context. If the resource |
276 * is not a valid <code>Graphics2D</code> context, this will return 0.0. | 276 * is not a valid <code>Graphics2D</code> context, this will return 0.0. |
277 */ | 277 */ |
278 float (*GetScale)(PP_Resource resource); | 278 float (*GetScale)(PP_Resource resource); |
279 PP_Bool (*SetLayerTransform)(PP_Resource resource, | |
280 float Scale, | |
wjmaclean
2016/04/13 14:47:19
don't capitalize parameter names
alessandroa
2016/04/21 15:39:21
Done.
| |
281 const struct PP_Point* Origin, | |
282 const struct PP_Point* Transform); | |
279 }; | 283 }; |
280 | 284 |
281 typedef struct PPB_Graphics2D_1_1 PPB_Graphics2D; | 285 typedef struct PPB_Graphics2D_1_1 PPB_Graphics2D; |
282 | 286 |
283 struct PPB_Graphics2D_1_0 { | 287 struct PPB_Graphics2D_1_0 { |
284 PP_Resource (*Create)(PP_Instance instance, | 288 PP_Resource (*Create)(PP_Instance instance, |
285 const struct PP_Size* size, | 289 const struct PP_Size* size, |
286 PP_Bool is_always_opaque); | 290 PP_Bool is_always_opaque); |
287 PP_Bool (*IsGraphics2D)(PP_Resource resource); | 291 PP_Bool (*IsGraphics2D)(PP_Resource resource); |
288 PP_Bool (*Describe)(PP_Resource graphics_2d, | 292 PP_Bool (*Describe)(PP_Resource graphics_2d, |
289 struct PP_Size* size, | 293 struct PP_Size* size, |
290 PP_Bool* is_always_opaque); | 294 PP_Bool* is_always_opaque); |
291 void (*PaintImageData)(PP_Resource graphics_2d, | 295 void (*PaintImageData)(PP_Resource graphics_2d, |
292 PP_Resource image_data, | 296 PP_Resource image_data, |
293 const struct PP_Point* top_left, | 297 const struct PP_Point* top_left, |
294 const struct PP_Rect* src_rect); | 298 const struct PP_Rect* src_rect); |
295 void (*Scroll)(PP_Resource graphics_2d, | 299 void (*Scroll)(PP_Resource graphics_2d, |
296 const struct PP_Rect* clip_rect, | 300 const struct PP_Rect* clip_rect, |
297 const struct PP_Point* amount); | 301 const struct PP_Point* amount); |
298 void (*ReplaceContents)(PP_Resource graphics_2d, PP_Resource image_data); | 302 void (*ReplaceContents)(PP_Resource graphics_2d, PP_Resource image_data); |
299 int32_t (*Flush)(PP_Resource graphics_2d, | 303 int32_t (*Flush)(PP_Resource graphics_2d, |
300 struct PP_CompletionCallback callback); | 304 struct PP_CompletionCallback callback); |
301 }; | 305 }; |
302 /** | 306 /** |
303 * @} | 307 * @} |
304 */ | 308 */ |
305 | 309 |
306 #endif /* PPAPI_C_PPB_GRAPHICS_2D_H_ */ | 310 #endif /* PPAPI_C_PPB_GRAPHICS_2D_H_ */ |
307 | 311 |
OLD | NEW |