Bug 1436375 - add RecordedScaledFontCreation event in DrawTargetRecording::FillGlyphs. r=jrmuizel
authorLee Salzman <lsalzman@mozilla.com>
Wed, 07 Feb 2018 15:48:23 -0500
changeset 402863 d16a102c8887fc2e55c622058b2d9b573949576f
parent 402862 705fdefaf5b16463d0b44c3704ccb2340fc521ff
child 402864 5b5d0df3b6eed562b1489e4f910735b7a77b56f7
push id33405
push usershindli@mozilla.com
push dateThu, 08 Feb 2018 10:04:47 +0000
treeherdermozilla-central@0ac953fcddf1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuizel
bugs1436375
milestone60.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1436375 - add RecordedScaledFontCreation event in DrawTargetRecording::FillGlyphs. r=jrmuizel MozReview-Commit-ID: 780xX36HeYH
gfx/2d/DrawTargetRecording.cpp
--- a/gfx/2d/DrawTargetRecording.cpp
+++ b/gfx/2d/DrawTargetRecording.cpp
@@ -355,16 +355,17 @@ DrawTargetRecording::FillGlyphs(ScaledFo
 	  if (fontDesc.IsValid()) {
 	    mRecorder->RecordEvent(fontDesc);
 	  } else {
 	    gfxWarning() << "DrawTargetRecording::FillGlyphs failed to serialise UnscaledFont";
 	  }
 	}
 	mRecorder->AddStoredObject(unscaledFont);
       }
+      mRecorder->RecordEvent(RecordedScaledFontCreation(aFont, unscaledFont));
     }
     RecordingFontUserData *userData = new RecordingFontUserData;
     userData->refPtr = aFont;
     userData->recorder = mRecorder;
     aFont->AddUserData(userDataKey, userData, &RecordingFontUserDataDestroyFunc);
     userData->recorder->AddScaledFont(aFont);
   }