Index: webkit/plugins/ppapi/ppb_image_data_impl.cc |
diff --git a/webkit/plugins/ppapi/ppb_image_data_impl.cc b/webkit/plugins/ppapi/ppb_image_data_impl.cc |
index d565addcb58a9fc99d7352d00837ed98054af8c9..492c552c2e43a7dea05d0235d00f7afbfc910f7f 100644 |
--- a/webkit/plugins/ppapi/ppb_image_data_impl.cc |
+++ b/webkit/plugins/ppapi/ppb_image_data_impl.cc |
@@ -18,13 +18,14 @@ |
#include "third_party/skia/include/core/SkColorPriv.h" |
#include "webkit/plugins/ppapi/common.h" |
#include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
+#include "webkit/plugins/ppapi/resource_helper.h" |
using ::ppapi::thunk::PPB_ImageData_API; |
namespace webkit { |
namespace ppapi { |
-PPB_ImageData_Impl::PPB_ImageData_Impl(PluginInstance* instance) |
+PPB_ImageData_Impl::PPB_ImageData_Impl(PP_Instance instance) |
: Resource(instance), |
format_(PP_IMAGEDATAFORMAT_BGRA_PREMUL), |
width_(0), |
@@ -35,7 +36,7 @@ PPB_ImageData_Impl::~PPB_ImageData_Impl() { |
} |
// static |
-PP_Resource PPB_ImageData_Impl::Create(PluginInstance* instance, |
+PP_Resource PPB_ImageData_Impl::Create(PP_Instance instance, |
PP_ImageDataFormat format, |
const PP_Size& size, |
PP_Bool init_to_zero) { |
@@ -63,7 +64,7 @@ bool PPB_ImageData_Impl::Init(PP_ImageDataFormat format, |
return false; // Prevent overflow of signed 32-bit ints. |
platform_image_.reset( |
- instance()->delegate()->CreateImage2D(width, height)); |
+ ResourceHelper::GetPluginDelegate(this)->CreateImage2D(width, height)); |
format_ = format; |
width_ = width; |
height_ = height; |