Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1277)

Unified Diff: content/renderer/pepper/pepper_plugin_instance_impl.cc

Issue 61813003: Allow PPB_ImageData_Impl to be created in a way that is compatible with unittests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 269254ac79e154fa21798883a7c6e92cb7a3fb59..aa2e6163cedbe82aa5dd5bdc9e2fd9adcfec7792 100644
--- a/content/renderer/pepper/pepper_plugin_instance_impl.cc
+++ b/content/renderer/pepper/pepper_plugin_instance_impl.cc
@@ -2756,7 +2756,8 @@ PP_Resource PepperPluginInstanceImpl::CreateImage(gfx::ImageSkia* source_image,
scoped_refptr<PPB_ImageData_Impl> image_data(new PPB_ImageData_Impl(
pp_instance(),
- PPB_ImageData_Impl::PLATFORM));
+ PPB_ImageData_Impl::PLATFORM,
+ PPB_ImageData_Impl::IsBrowserAllocated(PPB_ImageData_Impl::PLATFORM)));
if (!image_data->Init(
PPB_ImageData_Impl::GetNativeImageDataFormat(),
image_skia_rep.pixel_width(),

Powered by Google App Engine
This is Rietveld 408576698