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 #include "ppapi/c/pp_completion_callback.h" | 5 #include "ppapi/c/pp_completion_callback.h" |
6 #include "ppapi/c/pp_errors.h" | 6 #include "ppapi/c/pp_errors.h" |
7 #include "ppapi/c/ppb_graphics_2d.h" | 7 #include "ppapi/c/ppb_graphics_2d.h" |
8 #include "ppapi/thunk/common.h" | 8 #include "ppapi/thunk/common.h" |
9 #include "ppapi/thunk/enter.h" | 9 #include "ppapi/thunk/enter.h" |
10 #include "ppapi/thunk/ppb_graphics_2d_api.h" | 10 #include "ppapi/thunk/ppb_graphics_2d_api.h" |
11 #include "ppapi/thunk/resource_creation_api.h" | 11 #include "ppapi/thunk/resource_creation_api.h" |
| 12 #include "ppapi/thunk/thunk.h" |
12 | 13 |
13 namespace ppapi { | 14 namespace ppapi { |
14 namespace thunk { | 15 namespace thunk { |
15 | 16 |
16 namespace { | 17 namespace { |
17 | 18 |
18 PP_Resource Create(PP_Instance instance, | 19 PP_Resource Create(PP_Instance instance, |
19 const PP_Size* size, | 20 const PP_Size* size, |
20 PP_Bool is_always_opaque) { | 21 PP_Bool is_always_opaque) { |
21 EnterFunction<ResourceCreationAPI> enter(instance, true); | 22 EnterFunction<ResourceCreationAPI> enter(instance, true); |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 }; | 89 }; |
89 | 90 |
90 } // namespace | 91 } // namespace |
91 | 92 |
92 const PPB_Graphics2D* GetPPB_Graphics2D_Thunk() { | 93 const PPB_Graphics2D* GetPPB_Graphics2D_Thunk() { |
93 return &g_ppb_graphics_2d_thunk; | 94 return &g_ppb_graphics_2d_thunk; |
94 } | 95 } |
95 | 96 |
96 } // namespace thunk | 97 } // namespace thunk |
97 } // namespace ppapi | 98 } // namespace ppapi |
OLD | NEW |