Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(949)

Issue 7350050: Change SkTileGride geometry calculations to match the Chromium compositor. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 9 months ago by junov1
Modified:
11 years, 9 months ago
Reviewers:
TomH, reed1
CC:
skia-review_googlegroups.com, enne
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Change SkTileGride geometry calculations to match the Chromium compositor. This patch changes the semantics of tileWidth/Height to include the border region, and uses an offset to take into account the fact that there is no outer border for outer tiles. This patch also fixes a previous bug where the right column and bottom row were considered to be included in bounds that are expressed as an SkIRect. Companion Chromium CL required for roll: https://codereview.chromium.org/12221077/ TEST=TileGrid unit test Committed: https://code.google.com/p/skia/source/detail?r=7885

Patch Set 1 #

Patch Set 2 : #

Total comments: 1

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 3

Patch Set 6 : #

Patch Set 7 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -57 lines) Patch
M gm/gmmain.cpp View 1 2 3 4 5 1 chunk +5 lines, -1 line 0 comments Download
M include/core/SkTileGridPicture.h View 1 2 3 4 5 2 chunks +24 lines, -10 lines 2 comments Download
M src/core/SkTileGrid.h View 1 2 3 chunks +4 lines, -2 lines 0 comments Download
M src/core/SkTileGrid.cpp View 1 2 3 4 5 6 3 chunks +29 lines, -17 lines 0 comments Download
M src/core/SkTileGridPicture.cpp View 1 2 3 4 5 6 1 chunk +12 lines, -11 lines 0 comments Download
M tests/TileGridTest.cpp View 1 2 3 5 chunks +101 lines, -9 lines 0 comments Download
M tools/PictureRenderer.h View 1 2 3 4 5 4 chunks +3 lines, -5 lines 0 comments Download
M tools/PictureRenderer.cpp View 1 2 3 4 5 2 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 16
junov1
11 years, 9 months ago (2013-02-19 17:04:05 UTC) #1
TomH
Are these semantics more natural? Or are we just pulling their idiosyncracies into our codebase? ...
11 years, 9 months ago (2013-02-19 17:06:03 UTC) #2
junov1
That is a very good point. I think the new border semantics are more natural, ...
11 years, 9 months ago (2013-02-19 18:09:35 UTC) #3
junov1
Patch Set 2: - Made the offset user-configurable. - Added more unit testing to emulate ...
11 years, 9 months ago (2013-02-19 19:44:53 UTC) #4
reed1
I am struggling to completely understand tile-size and overlap-size, and what might be the clearest ...
11 years, 9 months ago (2013-02-19 20:08:24 UTC) #5
junov1
Patch Incorporated Mike's feedback. I feel a bit unsure about location of the definition TileGridInfo. ...
11 years, 9 months ago (2013-02-19 22:30:54 UTC) #6
reed1
I see exactly 1 call-site for the current constructor. I would vote, in general, to ...
11 years, 9 months ago (2013-02-19 22:50:45 UTC) #7
junov1
On 2013/02/19 22:50:45, reed1 wrote: > On a separate note, perhaps we can migrate this ...
11 years, 9 months ago (2013-02-20 15:27:13 UTC) #8
junov1
Patch.
11 years, 9 months ago (2013-02-20 15:28:59 UTC) #9
reed1
I like the new constructor organization. Just some questions about dox. lgtm otherwise. https://codereview.appspot.com/7350050/diff/14001/include/core/SkTileGridPicture.h File ...
11 years, 9 months ago (2013-02-20 15:56:06 UTC) #10
reed1
In the new spirit of zero-technical-debt, lets please commit to a follow-on CL that addresses ...
11 years, 9 months ago (2013-02-20 15:58:12 UTC) #11
junov1
Created a skia issue to refactor rtree/tilegrid out of core: https://code.google.com/p/skia/issues/detail?id=1129 https://codereview.appspot.com/7350050/diff/14001/src/core/SkTileGridPicture.cpp File src/core/SkTileGridPicture.cpp (right): ...
11 years, 9 months ago (2013-02-20 16:34:38 UTC) #12
reed1
On 2013/02/20 16:34:38, junov1 wrote: > Created a skia issue to refactor rtree/tilegrid out of ...
11 years, 9 months ago (2013-02-20 16:47:40 UTC) #13
junov1
Patch.
11 years, 9 months ago (2013-02-20 18:37:35 UTC) #14
reed1
Some header dox questions, but lgtm https://codereview.appspot.com/7350050/diff/26001/include/core/SkTileGridPicture.h File include/core/SkTileGridPicture.h (right): https://codereview.appspot.com/7350050/diff/26001/include/core/SkTileGridPicture.h#newcode26 include/core/SkTileGridPicture.h:26: /** Tile placement ...
11 years, 9 months ago (2013-02-20 21:37:13 UTC) #15
junov1
11 years, 9 months ago (2013-02-20 21:45:47 UTC) #16
No and No. I will clarify in the dox.
Currently working on a patch to roll this into chromium. To avoid holding the
roll, I will not commit this until the roller patch is LGTMed by CC reviewers.

Companion CC patch is being reviewed here:
https://codereview.chromium.org/12221077/
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b