Chromium Code Reviews
Descriptionui: Remove implicit flooring in skia rect conversion methods.
The current SkRectToRect method implicitly floors all components of thre rect
and this is bad. Replace this method with SkRectToRectF which keeps everything
as floating point.
We also add a conversion method from RectF to SkRect.
Tests:
ui_unittests:RectTest.SkiaRectConversions
R=sky
BUG=147395
Moved From: https://codereview.chromium.org/11275089/
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=167620
Patch Set 1 #Patch Set 2 : fix unittests #Patch Set 3 : remove temporary vars #Patch Set 4 : rebase #Patch Set 5 : ToNearestRect #
Total comments: 1
Patch Set 6 : typos #Patch Set 7 : Add unittest #Patch Set 8 : Add unittest2 #Patch Set 9 : Make root window transform in tests produce an integer result #
Messages
Total messages: 13 (0 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||