зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1006579 - Fix the AboutToCheckerboard implementation to actually work. r=Cwiiis
This commit is contained in:
Родитель
c86bc8f17d
Коммит
5f7bbdffc4
|
@ -241,7 +241,11 @@ bool
|
|||
SharedFrameMetricsHelper::AboutToCheckerboard(const FrameMetrics& aContentMetrics,
|
||||
const FrameMetrics& aCompositorMetrics)
|
||||
{
|
||||
return !aContentMetrics.mDisplayPort.Contains(aCompositorMetrics.CalculateCompositedRectInCssPixels() - aCompositorMetrics.GetScrollOffset());
|
||||
CSSRect painted =
|
||||
(aContentMetrics.mCriticalDisplayPort.IsEmpty() ? aContentMetrics.mDisplayPort : aContentMetrics.mCriticalDisplayPort)
|
||||
+ aContentMetrics.GetScrollOffset();
|
||||
CSSRect showing = CSSRect(aCompositorMetrics.GetScrollOffset(), aCompositorMetrics.CalculateBoundedCompositedSizeInCssPixels());
|
||||
return !painted.Contains(showing);
|
||||
}
|
||||
|
||||
ClientTiledLayerBuffer::ClientTiledLayerBuffer(ClientTiledThebesLayer* aThebesLayer,
|
||||
|
|
Загрузка…
Ссылка в новой задаче