| Index: trunk/src/content/renderer/pepper/pepper_plugin_instance_impl.cc
|
| ===================================================================
|
| --- trunk/src/content/renderer/pepper/pepper_plugin_instance_impl.cc (revision 224498)
|
| +++ trunk/src/content/renderer/pepper/pepper_plugin_instance_impl.cc (working copy)
|
| @@ -2672,9 +2672,11 @@
|
|
|
| PP_Resource PepperPluginInstanceImpl::CreateImage(gfx::ImageSkia* source_image,
|
| float scale) {
|
| - gfx::ImageSkiaRep image_skia_rep = source_image->GetRepresentation(scale);
|
| + ui::ScaleFactor scale_factor = ui::GetScaleFactorFromScale(scale);
|
| + gfx::ImageSkiaRep image_skia_rep = source_image->GetRepresentation(
|
| + scale_factor);
|
|
|
| - if (image_skia_rep.is_null() || image_skia_rep.scale() != scale)
|
| + if (image_skia_rep.is_null() || image_skia_rep.scale_factor() != scale_factor)
|
| return 0;
|
|
|
| scoped_refptr<PPB_ImageData_Impl> image_data(new PPB_ImageData_Impl(
|
|
|