зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1250046
- Remove Shumway references from IPC. r=jmathies
This commit is contained in:
Родитель
d3e1f74458
Коммит
347e37204f
|
@ -68,10 +68,6 @@ extern const wchar_t* kFlashFullscreenClass;
|
||||||
#include <ApplicationServices/ApplicationServices.h>
|
#include <ApplicationServices/ApplicationServices.h>
|
||||||
#endif // defined(XP_MACOSX)
|
#endif // defined(XP_MACOSX)
|
||||||
|
|
||||||
// This is the pref used to determine whether to use Shumway on a Flash object
|
|
||||||
// (when Shumway is enabled).
|
|
||||||
static const char kShumwayWhitelistPref[] = "shumway.swf.whitelist";
|
|
||||||
|
|
||||||
using namespace mozilla::plugins;
|
using namespace mozilla::plugins;
|
||||||
using namespace mozilla::layers;
|
using namespace mozilla::layers;
|
||||||
using namespace mozilla::gl;
|
using namespace mozilla::gl;
|
||||||
|
@ -122,7 +118,6 @@ PluginInstanceParent::PluginInstanceParent(PluginModuleParent* parent,
|
||||||
, mUseSurrogate(true)
|
, mUseSurrogate(true)
|
||||||
, mNPP(npp)
|
, mNPP(npp)
|
||||||
, mNPNIface(npniface)
|
, mNPNIface(npniface)
|
||||||
, mIsWhitelistedForShumway(false)
|
|
||||||
, mWindowType(NPWindowTypeWindow)
|
, mWindowType(NPWindowTypeWindow)
|
||||||
, mDrawingModel(kDefaultDrawingModel)
|
, mDrawingModel(kDefaultDrawingModel)
|
||||||
, mLastRecordedDrawingModel(-1)
|
, mLastRecordedDrawingModel(-1)
|
||||||
|
|
|
@ -316,18 +316,6 @@ public:
|
||||||
aOutput = mSrcAttribute;
|
aOutput = mSrcAttribute;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This function tells us whether this plugin instance would have been
|
|
||||||
* whitelisted for Shumway if Shumway had been enabled. This is being used
|
|
||||||
* for the purpose of gathering telemetry on Flash hangs that could
|
|
||||||
* potentially be avoided by using Shumway instead.
|
|
||||||
*/
|
|
||||||
bool
|
|
||||||
IsWhitelistedForShumway() const
|
|
||||||
{
|
|
||||||
return mIsWhitelistedForShumway;
|
|
||||||
}
|
|
||||||
|
|
||||||
virtual bool
|
virtual bool
|
||||||
AnswerPluginFocusChange(const bool& gotFocus) override;
|
AnswerPluginFocusChange(const bool& gotFocus) override;
|
||||||
|
|
||||||
|
@ -398,7 +386,6 @@ private:
|
||||||
NPP mNPP;
|
NPP mNPP;
|
||||||
const NPNetscapeFuncs* mNPNIface;
|
const NPNetscapeFuncs* mNPNIface;
|
||||||
nsCString mSrcAttribute;
|
nsCString mSrcAttribute;
|
||||||
bool mIsWhitelistedForShumway;
|
|
||||||
NPWindowType mWindowType;
|
NPWindowType mWindowType;
|
||||||
int16_t mDrawingModel;
|
int16_t mDrawingModel;
|
||||||
|
|
||||||
|
|
|
@ -1135,24 +1135,6 @@ PluginModuleChromeParent::AnnotateHang(mozilla::HangMonitor::HangAnnotations& aA
|
||||||
aAnnotations.AddAnnotation(NS_LITERAL_STRING("pluginName"), mPluginName);
|
aAnnotations.AddAnnotation(NS_LITERAL_STRING("pluginName"), mPluginName);
|
||||||
aAnnotations.AddAnnotation(NS_LITERAL_STRING("pluginVersion"),
|
aAnnotations.AddAnnotation(NS_LITERAL_STRING("pluginVersion"),
|
||||||
mPluginVersion);
|
mPluginVersion);
|
||||||
if (mIsFlashPlugin) {
|
|
||||||
bool isWhitelistedForShumway = false;
|
|
||||||
{ // Scope for lock
|
|
||||||
mozilla::MutexAutoLock lock(mHangAnnotatorMutex);
|
|
||||||
if (!mProtocolCallStack.IsEmpty()) {
|
|
||||||
mozilla::ipc::IProtocol* topProtocol =
|
|
||||||
mProtocolCallStack.LastElement();
|
|
||||||
PluginInstanceParent* instance =
|
|
||||||
GetManagingInstance(topProtocol);
|
|
||||||
if (instance) {
|
|
||||||
isWhitelistedForShumway =
|
|
||||||
instance->IsWhitelistedForShumway();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
aAnnotations.AddAnnotation(NS_LITERAL_STRING("pluginIsWhitelistedForShumway"),
|
|
||||||
isWhitelistedForShumway);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче