Index: ppapi/proxy/ppb_flash_proxy.cc |
=================================================================== |
--- ppapi/proxy/ppb_flash_proxy.cc (revision 121902) |
+++ ppapi/proxy/ppb_flash_proxy.cc (working copy) |
@@ -20,7 +20,6 @@ |
#include "ppapi/proxy/proxy_module.h" |
#include "ppapi/proxy/serialized_var.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/shared_impl/scoped_pp_resource.h" |
@@ -35,7 +34,6 @@ |
namespace { |
void SetInstanceAlwaysOnTop(PP_Instance pp_instance, PP_Bool on_top) { |
- ProxyAutoLock lock; |
PluginDispatcher* dispatcher = PluginDispatcher::GetForInstance(pp_instance); |
if (dispatcher) { |
dispatcher->Send(new PpapiHostMsg_PPBFlash_SetInstanceAlwaysOnTop( |
@@ -54,7 +52,6 @@ |
uint32_t glyph_count, |
const uint16_t glyph_indices[], |
const PP_Point glyph_advances[]) { |
- ProxyAutoLock lock; |
Resource* image_data = |
PpapiGlobals::Get()->GetResourceTracker()->GetResource(pp_image_data); |
if (!image_data) |
@@ -104,14 +101,13 @@ |
uint32_t glyph_count, |
const uint16_t glyph_indices[], |
const PP_Point glyph_advances[]) { |
- // Backwards-compatible version. DrawGlyphs locks; no need to lock here. |
+ // Backwards-compatible version. |
return DrawGlyphs(instance, pp_image_data, font_desc, color, &position, |
&clip, transformation, PP_TRUE, glyph_count, glyph_indices, |
glyph_advances); |
} |
PP_Var GetProxyForURL(PP_Instance instance, const char* url) { |
- ProxyAutoLock lock; |
PluginDispatcher* dispatcher = PluginDispatcher::GetForInstance(instance); |
if (!dispatcher) |
return PP_MakeUndefined(); |
@@ -145,12 +141,11 @@ |
int32_t Navigate11(PP_Resource request_id, |
const char* target, |
bool from_user_action) { |
- // Backwards-compatible version. Navigate locks; no need to lock here. |
+ // Backwards-compatible version. |
return Navigate(request_id, target, PP_FromBool(from_user_action)); |
} |
void RunMessageLoop(PP_Instance instance) { |
- ProxyAutoLock lock; |
PluginDispatcher* dispatcher = PluginDispatcher::GetForInstance(instance); |
if (!dispatcher) |
return; |
@@ -161,7 +156,6 @@ |
} |
void QuitMessageLoop(PP_Instance instance) { |
- ProxyAutoLock lock; |
PluginDispatcher* dispatcher = PluginDispatcher::GetForInstance(instance); |
if (!dispatcher) |
return; |
@@ -170,7 +164,6 @@ |
} |
double GetLocalTimeZoneOffset(PP_Instance instance, PP_Time t) { |
- ProxyAutoLock lock; |
PluginDispatcher* dispatcher = PluginDispatcher::GetForInstance(instance); |
if (!dispatcher) |
return 0.0; |
@@ -188,13 +181,11 @@ |
} |
PP_Var GetCommandLineArgs(PP_Module /*pp_module*/) { |
- ProxyAutoLock lock; |
std::string args = ProxyModule::GetInstance()->GetFlashCommandLineArgs(); |
return StringVar::StringToPPVar(args); |
} |
void PreLoadFontWin(const void* logfontw) { |
- ProxyAutoLock lock; |
PluginGlobals::Get()->plugin_proxy_delegate()->PreCacheFont(logfontw); |
} |