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

Issue 7300072: Adding option to SkTileGrid for specifying border pixels. (Closed)

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

Description

Adding option to SkTileGrid for specifying border pixels. The purpose of this patch is to make it possible for the chromium compositor to generate a TileGrid structure that is better suited for scaled playback. Committed: https://code.google.com/p/skia/source/detail?r=7680

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -15 lines) Patch
M include/core/SkTileGridPicture.h View 1 1 chunk +13 lines, -2 lines 0 comments Download
M src/core/SkTileGrid.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M src/core/SkTileGrid.cpp View 3 chunks +10 lines, -7 lines 0 comments Download
M src/core/SkTileGridPicture.cpp View 1 2 1 chunk +5 lines, -2 lines 0 comments Download
M tests/TileGridTest.cpp View 2 chunks +9 lines, -2 lines 0 comments Download

Messages

Total messages: 4
junov1
11 years, 5 months ago (2013-02-08 19:31:38 UTC) #1
reed1
I'm still not clear, by reading the comments in the public header, what borderPixels is ...
11 years, 4 months ago (2013-02-08 20:44:01 UTC) #2
junov1
On 2013/02/08 20:44:01, reed1 wrote: > I'm still not clear, by reading the comments in ...
11 years, 4 months ago (2013-02-08 20:53:10 UTC) #3
reed1
11 years, 4 months ago (2013-02-08 21:12:13 UTC) #4
Message was sent while issue was closed.
On 2013/02/08 20:53:10, junov1 wrote:
> On 2013/02/08 20:44:01, reed1 wrote:
> > I'm still not clear, by reading the comments in the public header, what
> > borderPixels is for, but perhaps thats fine for now.
> 
> I'm not sure how to explain it clearer without getting into the details of how
> the chromium compositor works. Basically, tile size and tile stride do not
match
> in the compositor because it makes its tiles overlap by a certain number of
> "border pixels".  The overlap is to avoid filtering artifacts when compositing
> the tiles with transforms that break texel-to-pixel alignment.

That description helped. Can you include part of that?

> 
> 
> > SkTDArray<void*>* results) {
> > Unrelated to this CL, but how is it correct to do these truncating divides?
> 
> It is intended. The offsets are designed to make the truncation land in the
> right spot. Limit conditions are validated by the unit test.

Perhaps a comment to this effect (whatever "right spot" means). I guess I want
it to be clear to the next person who edits this class what the intent of those
calculations is.
Sign in to reply to this message.

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