| Index: ppapi/examples/2d/graphics_2d_example.c
|
| diff --git a/ppapi/examples/2d/graphics_2d_example.c b/ppapi/examples/2d/graphics_2d_example.c
|
| index 6495cdce4783fd8f2ebde855f4cee0211551e66e..95758ea1a0ecccc575d80db4195c0d95ad072368 100644
|
| --- a/ppapi/examples/2d/graphics_2d_example.c
|
| +++ b/ppapi/examples/2d/graphics_2d_example.c
|
| @@ -21,10 +21,10 @@
|
|
|
| PPB_GetInterface g_get_browser_interface = NULL;
|
|
|
| -const struct PPB_Core* g_core_interface;
|
| -const struct PPB_Graphics2D* g_graphics_2d_interface;
|
| -const struct PPB_ImageData* g_image_data_interface;
|
| -const struct PPB_Instance* g_instance_interface;
|
| +const PPB_Core* g_core_interface;
|
| +const PPB_Graphics2D* g_graphics_2d_interface;
|
| +const PPB_ImageData* g_image_data_interface;
|
| +const PPB_Instance* g_instance_interface;
|
|
|
| /* PPP_Instance implementation -----------------------------------------------*/
|
|
|
| @@ -162,7 +162,7 @@ PP_Bool Instance_HandleDocumentLoad(PP_Instance pp_instance,
|
| return PP_FALSE;
|
| }
|
|
|
| -static struct PPP_Instance instance_interface = {
|
| +static PPP_Instance instance_interface = {
|
| &Instance_DidCreate,
|
| &Instance_DidDestroy,
|
| &Instance_DidChangeView,
|
| @@ -177,13 +177,13 @@ PP_EXPORT int32_t PPP_InitializeModule(PP_Module module,
|
| PPB_GetInterface get_browser_interface) {
|
| g_get_browser_interface = get_browser_interface;
|
|
|
| - g_core_interface = (const struct PPB_Core*)
|
| + g_core_interface = (const PPB_Core*)
|
| get_browser_interface(PPB_CORE_INTERFACE);
|
| - g_instance_interface = (const struct PPB_Instance*)
|
| + g_instance_interface = (const PPB_Instance*)
|
| get_browser_interface(PPB_INSTANCE_INTERFACE);
|
| - g_image_data_interface = (const struct PPB_ImageData*)
|
| + g_image_data_interface = (const PPB_ImageData*)
|
| get_browser_interface(PPB_IMAGEDATA_INTERFACE);
|
| - g_graphics_2d_interface = (const struct PPB_Graphics2D*)
|
| + g_graphics_2d_interface = (const PPB_Graphics2D*)
|
| get_browser_interface(PPB_GRAPHICS_2D_INTERFACE);
|
| if (!g_core_interface || !g_instance_interface || !g_image_data_interface ||
|
| !g_graphics_2d_interface)
|
| @@ -200,4 +200,3 @@ PP_EXPORT const void* PPP_GetInterface(const char* interface_name) {
|
| return &instance_interface;
|
| return NULL;
|
| }
|
| -
|
|
|