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

Issue 23060011: Pass the quad's rect (contents_rect) origin to skia image filters as an offset in the CTM. (Closed)

Created:
7 years, 4 months ago by Stephen White
Modified:
7 years, 3 months ago
Reviewers:
danakj, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

Pass the quad's rect (contents_rect) origin to skia image filters as an offset in the CTM. This won't actually do anything until I land a change in Skia to use the CTM, so no layout tests yet. (Let me know if there's a clever way to unit test this instead.) Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=220360

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Patch Set 3 : Add pixel test. #

Total comments: 8

Patch Set 4 : Fix skia casts #

Patch Set 5 : Modify test to cover incorrect clipping offsets, and to use blue_yellow.png as a result. #

Total comments: 6

Patch Set 6 : Fix comments re: review #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -0 lines) Patch
M cc/output/gl_renderer.cc View 1 2 3 4 5 3 chunks +7 lines, -0 lines 1 comment Download
M cc/trees/layer_tree_host_pixeltest_filters.cc View 1 2 3 4 5 2 chunks +47 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Stephen White
I-don't-know-what-I'm-doing-dog but this seems to work.
7 years, 4 months ago (2013-08-16 19:34:13 UTC) #1
enne (OOO)
On 2013/08/16 19:34:13, Stephen White wrote: > I-don't-know-what-I'm-doing-dog but this seems to work. That seems ...
7 years, 4 months ago (2013-08-16 19:42:14 UTC) #2
Stephen White
On 2013/08/16 19:42:14, enne wrote: > On 2013/08/16 19:34:13, Stephen White wrote: > > I-don't-know-what-I'm-doing-dog ...
7 years, 4 months ago (2013-08-16 21:06:09 UTC) #3
danakj
On Fri, Aug 16, 2013 at 5:06 PM, <senorblanco@chromium.org> wrote: > On 2013/08/16 19:42:14, enne ...
7 years, 4 months ago (2013-08-16 21:12:00 UTC) #4
danakj
I'd also like to see a pixel test for this. The latency on layout test ...
7 years, 4 months ago (2013-08-19 21:09:08 UTC) #5
Stephen White
On 2013/08/19 21:09:08, danakj wrote: > I'd also like to see a pixel test for ...
7 years, 3 months ago (2013-08-28 22:00:17 UTC) #6
danakj
https://codereview.chromium.org/23060011/diff/18001/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/23060011/diff/18001/cc/output/gl_renderer.cc#newcode496 cc/output/gl_renderer.cc:496: RenderSurfaceFilters::Apply(filters, Will this path do the right thing already? ...
7 years, 3 months ago (2013-08-28 22:26:58 UTC) #7
enne (OOO)
I still need some convincing about the scale here. What space is the offset in?
7 years, 3 months ago (2013-08-28 23:25:25 UTC) #8
Stephen White
https://codereview.chromium.org/23060011/diff/18001/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/23060011/diff/18001/cc/output/gl_renderer.cc#newcode496 cc/output/gl_renderer.cc:496: RenderSurfaceFilters::Apply(filters, On 2013/08/28 22:26:58, danakj wrote: > Will this ...
7 years, 3 months ago (2013-08-29 00:36:34 UTC) #9
Stephen White
On 2013/08/28 23:25:25, enne wrote: > I still need some convincing about the scale here. ...
7 years, 3 months ago (2013-08-29 00:46:25 UTC) #10
Stephen White
PTAL. New test uses blue_yellow.png, and ensures that only the correct offset passes.
7 years, 3 months ago (2013-08-29 01:49:20 UTC) #11
danakj
LGTM. enne@ ? https://codereview.chromium.org/23060011/diff/33001/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/23060011/diff/33001/cc/output/gl_renderer.cc#newcode581 cc/output/gl_renderer.cc:581: canvas.translate(SkIntToScalar(-origin.x()), SkIntToScalar(-origin.y())); Can you add a ...
7 years, 3 months ago (2013-08-29 02:07:16 UTC) #12
Stephen White
PTAL https://codereview.chromium.org/23060011/diff/33001/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/23060011/diff/33001/cc/output/gl_renderer.cc#newcode581 cc/output/gl_renderer.cc:581: canvas.translate(SkIntToScalar(-origin.x()), SkIntToScalar(-origin.y())); On 2013/08/29 02:07:16, danakj wrote: > ...
7 years, 3 months ago (2013-08-29 17:07:00 UTC) #13
enne (OOO)
lgtm https://codereview.chromium.org/23060011/diff/43001/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/23060011/diff/43001/cc/output/gl_renderer.cc#newcode572 cc/output/gl_renderer.cc:572: // TODO(senorblanco): in addition to the origin translation ...
7 years, 3 months ago (2013-08-29 17:11:37 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/senorblanco@chromium.org/23060011/43001
7 years, 3 months ago (2013-08-29 17:12:29 UTC) #15
commit-bot: I haz the power
7 years, 3 months ago (2013-08-29 20:50:53 UTC) #16
Message was sent while issue was closed.
Change committed as 220360

Powered by Google App Engine
This is Rietveld 408576698