summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorneb@chromium.org <neb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-12 20:59:07 +0000
committerneb@chromium.org <neb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-12 20:59:07 +0000
commit5df02d2171c09e771800b6ece95fef6ff27d0436 (patch)
treeb1e1f97284b7d523c0b05334720691fc5cf24963
parent84f024c021c2a8e009026516483897546faf86fa (diff)
downloadchromium_src-5df02d2171c09e771800b6ece95fef6ff27d0436.zip
chromium_src-5df02d2171c09e771800b6ece95fef6ff27d0436.tar.gz
chromium_src-5df02d2171c09e771800b6ece95fef6ff27d0436.tar.bz2
Fix ppapi_example_2d.
Module->Instance CL missed this file. BUG= code.google.com/p/nativeclient/issues/detail?id=901 TEST=this one Review URL: http://codereview.chromium.org/6222003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71231 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--ppapi/examples/2d/graphics_2d_example.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/ppapi/examples/2d/graphics_2d_example.c b/ppapi/examples/2d/graphics_2d_example.c
index 4e2fcd7..d17f99a 100644
--- a/ppapi/examples/2d/graphics_2d_example.c
+++ b/ppapi/examples/2d/graphics_2d_example.c
@@ -19,7 +19,6 @@
#include "ppapi/c/ppp.h"
#include "ppapi/c/ppp_instance.h"
-PP_Module g_module_id;
PPB_GetInterface g_get_browser_interface = NULL;
const struct PPB_Core* g_core_interface;
@@ -44,7 +43,7 @@ PP_Resource MakeAndBindDeviceContext(PP_Instance instance,
const struct PP_Size* size) {
PP_Resource device_context;
- device_context = g_graphics_2d_interface->Create(g_module_id, size, PP_FALSE);
+ device_context = g_graphics_2d_interface->Create(instance, size, PP_FALSE);
if (!device_context)
return 0;
@@ -67,7 +66,7 @@ void Repaint(struct InstanceInfo* instance, const struct PP_Size* size) {
/* Create image data to paint into. */
image = g_image_data_interface->Create(
- g_module_id, PP_IMAGEDATAFORMAT_BGRA_PREMUL, size, PP_TRUE);
+ instance->pp_instance, PP_IMAGEDATAFORMAT_BGRA_PREMUL, size, PP_TRUE);
if (!image)
return;
g_image_data_interface->Describe(image, &image_desc);
@@ -188,8 +187,6 @@ static struct PPP_Instance instance_interface = {
PP_EXPORT int32_t PPP_InitializeModule(PP_Module module,
PPB_GetInterface get_browser_interface) {
- /* Save the global module information for later. */
- g_module_id = module;
g_get_browser_interface = get_browser_interface;
g_core_interface = (const struct PPB_Core*)