Index: webkit/plugins/ppapi/ppb_image_data_impl.cc |
=================================================================== |
--- webkit/plugins/ppapi/ppb_image_data_impl.cc (revision 70488) |
+++ webkit/plugins/ppapi/ppb_image_data_impl.cc (working copy) |
@@ -33,15 +33,16 @@ |
return BoolToPPBool(PPB_ImageData_Impl::IsImageDataFormatSupported(format)); |
} |
-PP_Resource Create(PP_Module module_id, |
+PP_Resource Create(PP_Instance instance_id, |
PP_ImageDataFormat format, |
const PP_Size* size, |
PP_Bool init_to_zero) { |
- PluginModule* module = ResourceTracker::Get()->GetModule(module_id); |
- if (!module) |
+ PluginInstance* instance = ResourceTracker::Get()->GetInstance(instance_id); |
+ if (!instance) |
return 0; |
- scoped_refptr<PPB_ImageData_Impl> data(new PPB_ImageData_Impl(module)); |
+ scoped_refptr<PPB_ImageData_Impl> data( |
+ new PPB_ImageData_Impl(instance->module())); |
if (!data->Init(format, |
size->width, |
size->height, |