зеркало из https://github.com/mozilla/gecko-dev.git
Bug 736875 - Compositor perf warning need to be filtered up to 15ms. r=bgirard
This commit is contained in:
Родитель
d95bec90ea
Коммит
3ae43ae2a1
|
@ -401,8 +401,10 @@ ShadowLayersParent::RecvUpdate(const InfallibleTArray<Edit>& cset,
|
|||
mShadowLayersManager->ShadowLayersUpdated(isFirstPaint);
|
||||
|
||||
#ifdef COMPOSITOR_PERFORMANCE_WARNING
|
||||
printf_stderr("Compositor: Layers update took %i ms (blocking gecko).\n",
|
||||
(int)(mozilla::TimeStamp::Now() - updateStart).ToMilliseconds());
|
||||
int compositeTime = (int)(mozilla::TimeStamp::Now() - updateStart).ToMilliseconds();
|
||||
if (compositeTime > 15) {
|
||||
printf_stderr("Compositor: Layers update took %i ms (blocking gecko).\n", compositeTime);
|
||||
}
|
||||
#endif
|
||||
|
||||
return true;
|
||||
|
|
Загрузка…
Ссылка в новой задаче