Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bug 854446: Allow setting Moz2D recording destination. r=joedrew

  • Loading branch information...
commit 83f93917a51461b8f848508b7602b68ee358da26 1 parent c0b548e
Bas Schouten authored
Showing with 11 additions and 1 deletion.
  1. +11 −1 gfx/thebes/gfxPlatform.cpp
12 gfx/thebes/gfxPlatform.cpp
View
@@ -379,7 +379,17 @@ gfxPlatform::Init()
= do_CreateInstance("@mozilla.org/gfx/init;1");
if (Preferences::GetBool("gfx.2d.recording", false)) {
- gPlatform->mRecorder = Factory::CreateEventRecorderForFile("browserrecording.aer");
+
+ nsAutoCString fileName;
+ nsAdoptingString prefFileName = Preferences::GetString("gfx.2d.recordingfile");
+
+ if (prefFileName) {
+ fileName.Append(NS_ConvertUTF16toUTF8(prefFileName));
+ } else {
+ fileName.AssignLiteral("browserrecording.aer");
+ }
+
+ gPlatform->mRecorder = Factory::CreateEventRecorderForFile(fileName.BeginReading());
Factory::SetGlobalEventRecorder(gPlatform->mRecorder);
}
Please sign in to comment.
Something went wrong with that request. Please try again.