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

Issue 13493016: Fixing SkTileGrid to clamp rather than clip content and querries that are outside the bounds of the… (Closed)

Created:
7 years, 8 months ago by Justin Novosad
Modified:
7 years, 8 months ago
Reviewers:
Tom Hudson, reed1
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Fixing SkTileGrid to clamp rather than clip content and querries that are outside the bounds of the grid This fix prevents border padding and offsets on the tile grid structure from resulting in bad clipping. The job of clipping contents is left to the playback canvas. BUG=https://code.google.com/p/skia/issues/detail?id=1209 TEST=TileGrid unit test, Committed: https://code.google.com/p/skia/source/detail?r=8576

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 4

Patch Set 5 : #

Total comments: 1

Patch Set 6 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -9 lines) Patch
M src/core/SkTileGrid.cpp View 1 2 3 4 5 2 chunks +7 lines, -8 lines 1 comment Download
M tests/TileGridTest.cpp View 1 2 3 4 5 2 chunks +33 lines, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
Justin Novosad
PTAL
7 years, 8 months ago (2013-04-08 19:51:57 UTC) #1
Tom Hudson
https://codereview.chromium.org/13493016/diff/2002/include/core/SkMath.h File include/core/SkMath.h (right): https://codereview.chromium.org/13493016/diff/2002/include/core/SkMath.h#newcode60 include/core/SkMath.h:60: * @param value The value we want returned pinned ...
7 years, 8 months ago (2013-04-09 10:10:50 UTC) #2
Justin Novosad
On 2013/04/09 10:10:50, Tom Hudson wrote: > https://codereview.chromium.org/13493016/diff/2002/include/core/SkMath.h > File include/core/SkMath.h (right): > > https://codereview.chromium.org/13493016/diff/2002/include/core/SkMath.h#newcode60 ...
7 years, 8 months ago (2013-04-09 14:47:32 UTC) #3
Justin Novosad
https://codereview.chromium.org/13493016/diff/2002/include/core/SkMath.h File include/core/SkMath.h (right): https://codereview.chromium.org/13493016/diff/2002/include/core/SkMath.h#newcode65 include/core/SkMath.h:65: static inline int SkClampMinMax(int value, int min, int max) ...
7 years, 8 months ago (2013-04-09 14:47:50 UTC) #4
Tom Hudson
On 2013/04/09 14:47:32, junov wrote: > Actually what this does it extends the coverage of ...
7 years, 8 months ago (2013-04-09 15:14:01 UTC) #5
reed1
https://codereview.chromium.org/13493016/diff/14001/include/core/SkMath.h File include/core/SkMath.h (right): https://codereview.chromium.org/13493016/diff/14001/include/core/SkMath.h#newcode62 include/core/SkMath.h:62: static inline int SkClampMinMax(int value, int min, int max) ...
7 years, 8 months ago (2013-04-09 15:23:42 UTC) #6
Justin Novosad
The difference is the people find it when they search the code for "Clamp" and ...
7 years, 8 months ago (2013-04-09 15:32:55 UTC) #7
reed1
is there a perf difference, now that we are performing more culling at playback instead ...
7 years, 8 months ago (2013-04-09 15:34:45 UTC) #8
Justin Novosad
On 2013/04/09 15:34:45, reed1 wrote: > is there a perf difference, now that we are ...
7 years, 8 months ago (2013-04-09 15:45:32 UTC) #9
Justin Novosad
Patch.
7 years, 8 months ago (2013-04-09 15:50:49 UTC) #10
reed1
https://codereview.chromium.org/13493016/diff/19002/src/core/SkTileGrid.cpp File src/core/SkTileGrid.cpp (right): https://codereview.chromium.org/13493016/diff/19002/src/core/SkTileGrid.cpp#newcode69 src/core/SkTileGrid.cpp:69: adjustedQuery.sort(); // in case the inset inverted the rectangle ...
7 years, 8 months ago (2013-04-09 15:56:16 UTC) #11
Justin Novosad
For performance, we expand bounding boxes by fMargin upon insertion, and we contract the query ...
7 years, 8 months ago (2013-04-09 16:04:33 UTC) #12
reed1
7 years, 8 months ago (2013-04-09 16:09:07 UTC) #13
Happy to defer (my) understanding of the inset/outset part of this code (since
it is unchanged, other than the additional .sort() call) by this CL.

lgtm

Powered by Google App Engine
This is Rietveld 408576698