Index: ppapi/cpp/image_data.cc |
=================================================================== |
--- ppapi/cpp/image_data.cc (revision 70488) |
+++ ppapi/cpp/image_data.cc (working copy) |
@@ -43,7 +43,8 @@ |
PassRefAndInitData(resource); |
} |
-ImageData::ImageData(PP_ImageDataFormat format, |
+ImageData::ImageData(Instance* instance, |
+ PP_ImageDataFormat format, |
const Size& size, |
bool init_to_zero) |
: data_(NULL) { |
@@ -53,7 +54,7 @@ |
return; |
PassRefAndInitData(get_interface<PPB_ImageData>()->Create( |
- Module::Get()->pp_module(), format, &size.pp_size(), |
+ instance->pp_instance(), format, &size.pp_size(), |
BoolToPPBool(init_to_zero))); |
} |