mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 792207 - Part 6: Add simple code allow enabling browser recording. r=jrmuizel
This commit is contained in:
parent
1cbd658d18
commit
5acda0d600
@ -350,6 +350,11 @@ gfxPlatform::Init()
|
||||
// ::Shutdown to be called.
|
||||
nsCOMPtr<nsISupports> forceReg
|
||||
= do_CreateInstance("@mozilla.org/gfx/init;1");
|
||||
|
||||
if (Preferences::GetBool("gfx.2d.recording", false)) {
|
||||
gPlatform->mRecorder = Factory::CreateEventRecorderForFile("browserrecording.aer");
|
||||
Factory::SetGlobalEventRecorder(gPlatform->mRecorder);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -551,6 +551,8 @@ private:
|
||||
|
||||
mozilla::widget::GfxInfoCollector<gfxPlatform> mAzureCanvasBackendCollector;
|
||||
bool mWorkAroundDriverBugs;
|
||||
|
||||
mozilla::RefPtr<mozilla::gfx::DrawEventRecorder> mRecorder;
|
||||
};
|
||||
|
||||
#endif /* GFX_PLATFORM_H */
|
||||
|
Loading…
Reference in New Issue
Block a user