summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy/ppb_testing_proxy.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ppapi/proxy/ppb_testing_proxy.cc')
-rw-r--r--ppapi/proxy/ppb_testing_proxy.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/ppapi/proxy/ppb_testing_proxy.cc b/ppapi/proxy/ppb_testing_proxy.cc
index 470d3da..836e1cf 100644
--- a/ppapi/proxy/ppb_testing_proxy.cc
+++ b/ppapi/proxy/ppb_testing_proxy.cc
@@ -7,10 +7,9 @@
#include "base/message_loop.h"
#include "ppapi/c/dev/ppb_testing_dev.h"
#include "ppapi/proxy/plugin_dispatcher.h"
+#include "ppapi/proxy/plugin_resource_tracker.h"
#include "ppapi/proxy/ppapi_messages.h"
-#include "ppapi/shared_impl/ppapi_globals.h"
#include "ppapi/shared_impl/resource.h"
-#include "ppapi/shared_impl/resource_tracker.h"
namespace ppapi {
namespace proxy {
@@ -20,12 +19,12 @@ namespace {
PP_Bool ReadImageData(PP_Resource graphics_2d,
PP_Resource image,
const PP_Point* top_left) {
- Resource* image_object =
- PpapiGlobals::Get()->GetResourceTracker()->GetResource(image);
+ Resource* image_object = PluginResourceTracker::GetInstance()->
+ GetResource(image);
if (!image_object)
return PP_FALSE;
Resource* graphics_2d_object =
- PpapiGlobals::Get()->GetResourceTracker()->GetResource(graphics_2d);
+ PluginResourceTracker::GetInstance()->GetResource(graphics_2d);
if (!graphics_2d_object ||
image_object->pp_instance() != graphics_2d_object->pp_instance())
return PP_FALSE;