forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cc: Band-aid coverage iterator for large layers
gfx::ScaleToEnclosingRect converts to floats, which can lead to precision errors at large integral values. Ironically, ScaleToEnclosingRect can create a rect that is smaller than the input in some cases. This leads to DCHECKs in debug, and quads that don't quite fill the entire content rect in release. One solution to punt this a little bit would be to use doubles for this conversion (or in several places). This solution just special cases scale=1, which is the common case for the vast majority of tilings. The only time that tilings are not at scale=1 (relative to the drawing scale, which is the max of all the contents scales in the tiling set) are for low res tilings or for intermediate tilings during pinch zoom. This is not an amazing solution, but it is *a* solution that should make many cases work better. R=weiliangc@chromium.org,danakj@chromium.org BUG=458524 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1254963008 Cr-Commit-Position: refs/heads/master@{#341256}
- Loading branch information
Showing
3 changed files
with
23 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters