From cd7b299fd6053afcd625ce36f0e51f94c83b182c Mon Sep 17 00:00:00 2001 From: "apatrick@google.com" Date: Mon, 13 Jul 2009 20:19:04 +0000 Subject: Plugin no longer makes synchronous NPAPI calls from a Windows message handler. This fixes deadlocks and slowdown in Chrome. The approach is strange. It asynchronously opens the url data:, and then invokes Tick from the finish callback. This is the simplest approach I could think of that hide widespread browser support. NPN_PluginThreadAsyncCall would be ideal but it is supported by all browsers we currently support. Review URL: http://codereview.chromium.org/149415 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20517 0039d316-1c4b-4281-b951-d872f2087c98 --- o3d/plugin/cross/main.h | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'o3d/plugin/cross/main.h') diff --git a/o3d/plugin/cross/main.h b/o3d/plugin/cross/main.h index 003a63a..c5de7b6 100644 --- a/o3d/plugin/cross/main.h +++ b/o3d/plugin/cross/main.h @@ -99,19 +99,6 @@ extern "C" { namespace o3d { -class RenderOnDemandCallbackHandler - : public o3d::Client::RenderOnDemandCallback { - public: - explicit RenderOnDemandCallbackHandler(glue::_o3d::PluginObject* obj) - : obj_(obj) { - } - - // This function is implemented for each platform. - virtual void Run(); - private: - glue::_o3d::PluginObject* obj_; -}; - void WriteLogString(const char* text, int length); NPError NPP_Destroy(NPP instance, NPSavedData **save); NPError NPP_DestroyStream(NPP instance, NPStream *stream, NPReason reason); -- cgit v1.1