| Index: content/renderer/pepper/pepper_plugin_instance_impl.cc
|
| diff --git a/content/renderer/pepper/pepper_plugin_instance_impl.cc b/content/renderer/pepper/pepper_plugin_instance_impl.cc
|
| index 52b33d7667e494b51281fca40ddfc989669c16df..9e4dab2c5b36613b1c76ec76b963701a658b5350 100644
|
| --- a/content/renderer/pepper/pepper_plugin_instance_impl.cc
|
| +++ b/content/renderer/pepper/pepper_plugin_instance_impl.cc
|
| @@ -2680,11 +2680,9 @@ PP_Resource PepperPluginInstanceImpl::CreateExternalFileReference(
|
|
|
| PP_Resource PepperPluginInstanceImpl::CreateImage(gfx::ImageSkia* source_image,
|
| float scale) {
|
| - ui::ScaleFactor scale_factor = ui::GetScaleFactorFromScale(scale);
|
| - gfx::ImageSkiaRep image_skia_rep = source_image->GetRepresentation(
|
| - scale_factor);
|
| + gfx::ImageSkiaRep image_skia_rep = source_image->GetRepresentation(scale);
|
|
|
| - if (image_skia_rep.is_null() || image_skia_rep.scale_factor() != scale_factor)
|
| + if (image_skia_rep.is_null() || image_skia_rep.scale() != scale)
|
| return 0;
|
|
|
| scoped_refptr<PPB_ImageData_Impl> image_data(new PPB_ImageData_Impl(
|
|
|