diff options
Diffstat (limited to 'ppapi/proxy/ppb_testing_proxy.cc')
-rw-r--r-- | ppapi/proxy/ppb_testing_proxy.cc | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/ppapi/proxy/ppb_testing_proxy.cc b/ppapi/proxy/ppb_testing_proxy.cc index 629b3f0..9c0a14b 100644 --- a/ppapi/proxy/ppb_testing_proxy.cc +++ b/ppapi/proxy/ppb_testing_proxy.cc @@ -10,14 +10,13 @@ #include "ppapi/proxy/plugin_dispatcher.h" #include "ppapi/proxy/ppapi_messages.h" #include "ppapi/shared_impl/ppapi_globals.h" -#include "ppapi/shared_impl/proxy_lock.h" #include "ppapi/shared_impl/resource.h" #include "ppapi/shared_impl/resource_tracker.h" #include "ppapi/thunk/enter.h" #include "ppapi/thunk/ppb_input_event_api.h" using ppapi::thunk::EnterInstance; -using ppapi::thunk::EnterResourceNoLock; +using ppapi::thunk::EnterResource; using ppapi::thunk::PPB_InputEvent_API; namespace ppapi { @@ -28,7 +27,6 @@ namespace { PP_Bool ReadImageData(PP_Resource graphics_2d, PP_Resource image, const PP_Point* top_left) { - ProxyAutoLock lock; Resource* image_object = PpapiGlobals::Get()->GetResourceTracker()->GetResource(image); if (!image_object) @@ -52,7 +50,6 @@ PP_Bool ReadImageData(PP_Resource graphics_2d, } void RunMessageLoop(PP_Instance instance) { - // TODO(dmichael): We should probably assert that this is the main thread. bool old_state = MessageLoop::current()->NestableTasksAllowed(); MessageLoop::current()->SetNestableTasksAllowed(true); MessageLoop::current()->Run(); @@ -60,12 +57,10 @@ void RunMessageLoop(PP_Instance instance) { } void QuitMessageLoop(PP_Instance instance) { - // TODO(dmichael): We should probably assert that this is the main thread. MessageLoop::current()->QuitNow(); } uint32_t GetLiveObjectsForInstance(PP_Instance instance_id) { - ProxyAutoLock lock; PluginDispatcher* dispatcher = PluginDispatcher::GetForInstance(instance_id); if (!dispatcher) return static_cast<uint32_t>(-1); @@ -81,11 +76,10 @@ PP_Bool IsOutOfProcess() { } void SimulateInputEvent(PP_Instance instance_id, PP_Resource input_event) { - ProxyAutoLock lock; PluginDispatcher* dispatcher = PluginDispatcher::GetForInstance(instance_id); if (!dispatcher) return; - EnterResourceNoLock<PPB_InputEvent_API> enter(input_event, false); + EnterResource<PPB_InputEvent_API> enter(input_event, false); if (enter.failed()) return; @@ -105,7 +99,6 @@ PP_Var GetDocumentURL(PP_Instance instance, PP_URLComponents_Dev* components) { // host-side tracker when running out-of-process, to make sure the proxy does // not leak host-side vars. uint32_t GetLiveVars(PP_Var live_vars[], uint32_t array_size) { - ProxyAutoLock lock; std::vector<PP_Var> vars = PpapiGlobals::Get()->GetVarTracker()->GetLiveVars(); for (size_t i = 0u; |