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

Unified Diff: ppapi/thunk/ppb_image_data_thunk.cc

Issue 16605006: Clean up Pepper ImageData resource class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months 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: ppapi/thunk/ppb_image_data_thunk.cc
diff --git a/ppapi/thunk/ppb_image_data_thunk.cc b/ppapi/thunk/ppb_image_data_thunk.cc
index d26904a985c7622329403f945f8376a4fe7c87c8..b16c9c0d1b5a33f16de690fa58a411b4e88b9f2c 100644
--- a/ppapi/thunk/ppb_image_data_thunk.cc
+++ b/ppapi/thunk/ppb_image_data_thunk.cc
@@ -40,6 +40,11 @@ PP_Resource Create(PP_Instance instance,
if (enter.failed())
return 0;
return enter.functions()->CreateImageData(instance,
+#if !defined(OS_NACL)
+ PPB_ImageData_Shared::PLATFORM,
+#else
+ PPB_ImageData_Shared::SIMPLE,
+#endif
format,
size,
init_to_zero);

Powered by Google App Engine
This is Rietveld 408576698