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

Unified Diff: webkit/plugins/ppapi/resource_creation_impl.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 | « webkit/plugins/ppapi/resource_creation_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/resource_creation_impl.cc
diff --git a/webkit/plugins/ppapi/resource_creation_impl.cc b/webkit/plugins/ppapi/resource_creation_impl.cc
index 3a0053b9b99d233ad6580992bf3fb3dc850d944c..ddbfcf70e7a71a436231049a2c625de2e4ec71d7 100644
--- a/webkit/plugins/ppapi/resource_creation_impl.cc
+++ b/webkit/plugins/ppapi/resource_creation_impl.cc
@@ -130,19 +130,14 @@ PP_Resource ResourceCreationImpl::CreateHostResolverPrivate(
return 0; // Not supported in-process.
}
-PP_Resource ResourceCreationImpl::CreateImageData(PP_Instance instance,
- PP_ImageDataFormat format,
- const PP_Size* size,
- PP_Bool init_to_zero) {
- return PPB_ImageData_Impl::CreatePlatform(instance, format, *size,
- init_to_zero);
-}
-
-PP_Resource ResourceCreationImpl::CreateImageDataNaCl(PP_Instance instance,
- PP_ImageDataFormat format,
- const PP_Size* size,
- PP_Bool init_to_zero) {
- return PPB_ImageData_Impl::CreateNaCl(instance, format, *size, init_to_zero);
+PP_Resource ResourceCreationImpl::CreateImageData(
+ PP_Instance instance,
+ ::ppapi::PPB_ImageData_Shared::ImageDataType type,
+ PP_ImageDataFormat format,
+ const PP_Size* size,
+ PP_Bool init_to_zero) {
+ return PPB_ImageData_Impl::Create(instance, type,
+ format, *size, init_to_zero);
}
PP_Resource ResourceCreationImpl::CreateIMEInputEvent(
« no previous file with comments | « webkit/plugins/ppapi/resource_creation_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698