Bug 804724 - Add an abort painting marker. r=ehsan

--HG--
extra : rebase_source : 10f327e91b15d673303eb607a361c1c4d14a1e92
This commit is contained in:
Benoit Girard 2012-10-23 17:18:37 -04:00
parent 1adbee29f9
commit b91e942f5e
2 changed files with 4 additions and 0 deletions

View File

@ -274,6 +274,7 @@ BasicTiledThebesLayer::ComputeProgressiveUpdateRegion(const nsIntRegion& aInvali
gfx::Rect viewport;
float scaleX, scaleY;
if (BasicManager()->ProgressiveUpdateCallback(!freshRegion.IsEmpty(), viewport, scaleX, scaleY)) {
SAMPLE_MARKER("Abort painting");
aRegionToPaint.SetEmpty();
return aIsRepeated;
}

View File

@ -424,6 +424,9 @@ inline void mozilla_sampler_call_exit(void *aHandle)
inline void mozilla_sampler_add_marker(const char *aMarker)
{
if (!stack_key_initialized)
return;
ProfileStack *stack = tlsStack.get();
if (!stack) {
return;