Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(346)

Issue 11359172: ui: Remove implicit flooring in skia rect conversion methods. (Closed)

Created:
8 years, 1 month ago by danakj
Modified:
8 years, 1 month ago
Reviewers:
jamesr, sky
CC:
chromium-reviews, sadrul, yusukes+watch_chromium.org, ben+watch_chromium.org, Ian Vollick, tfarina, jonathan.backer, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, cc-bugs_chromium.org, James Su, piman, backer, aelias_OOO_until_Jul13
Visibility:
Public.

Description

ui: 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -88 lines) Patch
M ash/wm/image_grid.h View 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/image_grid.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M ash/wm/image_grid_unittest.cc View 1 7 chunks +14 lines, -14 lines 0 comments Download
M cc/software_renderer.cc View 1 2 3 9 chunks +18 lines, -27 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M ui/aura/root_window.cc View 1 2 3 4 2 chunks +7 lines, -5 lines 0 comments Download
M ui/aura/window_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +11 lines, -3 lines 0 comments Download
M ui/compositor/layer_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M ui/gfx/rect_conversions.h View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M ui/gfx/rect_conversions.cc View 1 2 3 4 2 chunks +24 lines, -0 lines 0 comments Download
M ui/gfx/rect_unittest.cc View 1 2 3 4 5 6 7 2 chunks +23 lines, -4 lines 0 comments Download
M ui/gfx/skia_util.h View 1 chunk +3 lines, -1 line 0 comments Download
M ui/gfx/skia_util.cc View 2 chunks +16 lines, -7 lines 0 comments Download
M ui/gfx/transform.h View 2 chunks +3 lines, -3 lines 0 comments Download
M ui/gfx/transform.cc View 2 chunks +8 lines, -7 lines 0 comments Download
M ui/views/controls/table/table_view_views.cc View 2 chunks +4 lines, -1 line 0 comments Download
M ui/views/controls/tree/tree_view_views.cc View 2 chunks +4 lines, -1 line 0 comments Download
M ui/views/view.cc View 1 2 3 3 chunks +8 lines, -4 lines 0 comments Download
M ui/views/view_unittest.cc View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M ui/views/widget/widget.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
danakj
Hi Sky, I'm picking up https://codereview.chromium.org/11275089/ here. I used ToEnclosingRect in most of the places. ...
8 years, 1 month ago (2012-11-13 00:21:26 UTC) #1
danakj
+jamesr for cc/ since you reviewed the previous incarnation
8 years, 1 month ago (2012-11-13 00:24:52 UTC) #2
jamesr
cc lgtm
8 years, 1 month ago (2012-11-13 00:30:23 UTC) #3
sky
LGTM
8 years, 1 month ago (2012-11-13 01:18:18 UTC) #4
danakj
Fixed tests. aura_tests:WindowTest.Transform will pass when we switch to using doubles in matrices. Rotation by ...
8 years, 1 month ago (2012-11-13 02:09:13 UTC) #5
sky
SLGTM
8 years, 1 month ago (2012-11-13 17:18:18 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11359172/9003
8 years, 1 month ago (2012-11-13 23:15:32 UTC) #7
danakj
Hi Sky. We need one more round for this. (No pun intended..) The root_window.cc case ...
8 years, 1 month ago (2012-11-14 02:30:30 UTC) #8
sky
I don't think WindowTest.Transform is really valid. Its rotating the rootwindow, which we have no ...
8 years, 1 month ago (2012-11-14 02:45:41 UTC) #9
sky
LGTM
8 years, 1 month ago (2012-11-14 02:45:49 UTC) #10
danakj
On 2012/11/14 02:45:49, sky wrote: > LGTM Thanks.
8 years, 1 month ago (2012-11-14 02:50:58 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11359172/12024
8 years, 1 month ago (2012-11-14 05:24:18 UTC) #12
commit-bot: I haz the power
8 years, 1 month ago (2012-11-14 07:28:14 UTC) #13
Change committed as 167620

Powered by Google App Engine
This is Rietveld 408576698