Index: content/renderer/pepper/pepper_in_process_resource_creation.cc |
diff --git a/content/renderer/pepper/pepper_in_process_resource_creation.cc b/content/renderer/pepper/pepper_in_process_resource_creation.cc |
index 1854e9eeaeb434a522ae62d3566b092351fd7a13..73bed1faa7d6eca99aadc48bc6e24216353c2237 100644 |
--- a/content/renderer/pepper/pepper_in_process_resource_creation.cc |
+++ b/content/renderer/pepper/pepper_in_process_resource_creation.cc |
@@ -14,6 +14,7 @@ |
#include "ipc/ipc_message_macros.h" |
#include "ppapi/host/ppapi_host.h" |
#include "ppapi/proxy/file_chooser_resource.h" |
+#include "ppapi/proxy/graphics_2d_resource.h" |
#include "ppapi/proxy/ppapi_messages.h" |
#include "ppapi/proxy/printing_resource.h" |
#include "ppapi/proxy/url_request_info_resource.h" |
@@ -50,6 +51,15 @@ PP_Resource PepperInProcessResourceCreation::CreateFileChooser( |
instance, mode, accept_types))->GetReference(); |
} |
+PP_Resource PepperInProcessResourceCreation::CreateGraphics2D( |
+ PP_Instance instance, |
+ const PP_Size& size, |
+ PP_Bool is_always_opaque) { |
+ return (new ppapi::proxy::Graphics2DResource( |
+ host_impl_->in_process_router()->GetPluginConnection(), |
+ instance, size, is_always_opaque))->GetReference(); |
+} |
+ |
PP_Resource PepperInProcessResourceCreation::CreatePrinting( |
PP_Instance instance) { |
return (new ppapi::proxy::PrintingResource( |