mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 21:00:50 +00:00

The patch in bug 1073252 assumed that the gralloc buffer is always at (0,0,w,h) in layer coordinates, which is incorrect. When intersecting the gralloc buffer bounds with the visible rect, we need to take the gralloc buffer's offset (state.mOffset) into account. Fortunately bufferRect already contains this, so let's just use that. --HG-- extra : rebase_source : 6187200b29ed2913e335d5a710f1ba38d7b1cf18