| 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 /* From ppb_graphics_2d.idl modified Wed Aug 24 20:51:38 2011. */ |    6 /* From ppb_graphics_2d.idl modified Wed Oct  5 14:06:02 2011. */ | 
|    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 11 matching lines...) Expand all  Loading... | 
|   28  */ |   28  */ | 
|   29  |   29  | 
|   30  |   30  | 
|   31 /** |   31 /** | 
|   32  * @addtogroup Interfaces |   32  * @addtogroup Interfaces | 
|   33  * @{ |   33  * @{ | 
|   34  */ |   34  */ | 
|   35 /** |   35 /** | 
|   36  * <code>PPB_Graphics2D</code> defines the interface for a 2D graphics context. |   36  * <code>PPB_Graphics2D</code> defines the interface for a 2D graphics context. | 
|   37  */ |   37  */ | 
|   38 struct PPB_Graphics2D { |   38 struct PPB_Graphics2D_1_0 { | 
|   39   /** |   39   /** | 
|   40    * Create() creates a 2D graphics context. The returned graphics context will |   40    * Create() creates a 2D graphics context. The returned graphics context will | 
|   41    * not be bound to the module instance on creation (call BindGraphics() on |   41    * not be bound to the module instance on creation (call BindGraphics() on | 
|   42    * the module instance to bind the returned graphics context to the module |   42    * the module instance to bind the returned graphics context to the module | 
|   43    * instance). |   43    * instance). | 
|   44    * |   44    * | 
|   45    * @param[in] instance The module instance. |   45    * @param[in] instance The module instance. | 
|   46    * @param[in] size The size of the graphic context. |   46    * @param[in] size The size of the graphic context. | 
|   47    * @param[in] is_always_opaque Set the <code>is_always_opaque</code> flag to |   47    * @param[in] is_always_opaque Set the <code>is_always_opaque</code> flag to | 
|   48    * <code>PP_TRUE</code> if you know that you will be painting only opaque |   48    * <code>PP_TRUE</code> if you know that you will be painting only opaque | 
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  249    * TODO(darin): We should ensure that the completion callback always runs, so |  249    * TODO(darin): We should ensure that the completion callback always runs, so | 
|  250    * that it is easier for consumers to manage memory referenced by a callback. |  250    * that it is easier for consumers to manage memory referenced by a callback. | 
|  251    */ |  251    */ | 
|  252   /* |  252   /* | 
|  253    * TODO(): Add back in the synchronous mode description once we have support |  253    * TODO(): Add back in the synchronous mode description once we have support | 
|  254    * for it. |  254    * for it. | 
|  255    */ |  255    */ | 
|  256   int32_t (*Flush)(PP_Resource graphics_2d, |  256   int32_t (*Flush)(PP_Resource graphics_2d, | 
|  257                    struct PP_CompletionCallback callback); |  257                    struct PP_CompletionCallback callback); | 
|  258 }; |  258 }; | 
 |  259  | 
 |  260 typedef struct PPB_Graphics2D_1_0 PPB_Graphics2D; | 
|  259 /** |  261 /** | 
|  260  * @} |  262  * @} | 
|  261  */ |  263  */ | 
|  262  |  264  | 
|  263 #endif  /* PPAPI_C_PPB_GRAPHICS_2D_H_ */ |  265 #endif  /* PPAPI_C_PPB_GRAPHICS_2D_H_ */ | 
|  264  |  266  | 
| OLD | NEW |