| 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 // From ppb_graphics_2d.idl modified Fri Apr 26 08:49:08 2013. | 5 // From ppb_graphics_2d.idl modified Tue Aug 20 08:13:36 2013. |
| 6 | 6 |
| 7 #include <string.h> | 7 #include <string.h> |
| 8 | 8 |
| 9 #include "ppapi/c/pp_completion_callback.h" | 9 #include "ppapi/c/pp_completion_callback.h" |
| 10 #include "ppapi/c/pp_errors.h" | 10 #include "ppapi/c/pp_errors.h" |
| 11 #include "ppapi/c/ppb_graphics_2d.h" | 11 #include "ppapi/c/ppb_graphics_2d.h" |
| 12 #include "ppapi/shared_impl/tracked_callback.h" | 12 #include "ppapi/shared_impl/tracked_callback.h" |
| 13 #include "ppapi/thunk/enter.h" | 13 #include "ppapi/thunk/enter.h" |
| 14 #include "ppapi/thunk/ppapi_thunk_export.h" |
| 14 #include "ppapi/thunk/ppb_graphics_2d_api.h" | 15 #include "ppapi/thunk/ppb_graphics_2d_api.h" |
| 15 #include "ppapi/thunk/ppb_instance_api.h" | |
| 16 #include "ppapi/thunk/resource_creation_api.h" | |
| 17 #include "ppapi/thunk/thunk.h" | |
| 18 | 16 |
| 19 namespace ppapi { | 17 namespace ppapi { |
| 20 namespace thunk { | 18 namespace thunk { |
| 21 | 19 |
| 22 namespace { | 20 namespace { |
| 23 | 21 |
| 24 PP_Resource Create(PP_Instance instance, | 22 PP_Resource Create(PP_Instance instance, |
| 25 const struct PP_Size* size, | 23 const struct PP_Size* size, |
| 26 PP_Bool is_always_opaque) { | 24 PP_Bool is_always_opaque) { |
| 27 VLOG(4) << "PPB_Graphics2D::Create()"; | 25 VLOG(4) << "PPB_Graphics2D::Create()"; |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 &PaintImageData, | 118 &PaintImageData, |
| 121 &Scroll, | 119 &Scroll, |
| 122 &ReplaceContents, | 120 &ReplaceContents, |
| 123 &Flush, | 121 &Flush, |
| 124 &SetScale, | 122 &SetScale, |
| 125 &GetScale | 123 &GetScale |
| 126 }; | 124 }; |
| 127 | 125 |
| 128 } // namespace | 126 } // namespace |
| 129 | 127 |
| 130 const PPB_Graphics2D_1_0* GetPPB_Graphics2D_1_0_Thunk() { | 128 PPAPI_THUNK_EXPORT const PPB_Graphics2D_1_0* GetPPB_Graphics2D_1_0_Thunk() { |
| 131 return &g_ppb_graphics2d_thunk_1_0; | 129 return &g_ppb_graphics2d_thunk_1_0; |
| 132 } | 130 } |
| 133 | 131 |
| 134 const PPB_Graphics2D_1_1* GetPPB_Graphics2D_1_1_Thunk() { | 132 PPAPI_THUNK_EXPORT const PPB_Graphics2D_1_1* GetPPB_Graphics2D_1_1_Thunk() { |
| 135 return &g_ppb_graphics2d_thunk_1_1; | 133 return &g_ppb_graphics2d_thunk_1_1; |
| 136 } | 134 } |
| 137 | 135 |
| 138 } // namespace thunk | 136 } // namespace thunk |
| 139 } // namespace ppapi | 137 } // namespace ppapi |
| OLD | NEW |