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

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: Add NOTREACHED if creating PlatformImageData in NaCl. 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
« no previous file with comments | « ppapi/shared_impl/ppb_image_data_shared.h ('k') | ppapi/thunk/resource_creation_api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « ppapi/shared_impl/ppb_image_data_shared.h ('k') | ppapi/thunk/resource_creation_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698