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

Issue 6354065: Add a zoom filter to Skia. This will be used on ChromeOS to implement the screen magnifier. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 5 months ago by zork
Modified:
12 years, 3 months ago
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlecode.com/svn/trunk
Visibility:
Public.

Description

Add a zoom filter to Skia. This will be used on ChromeOS to implement the screen magnifier. BUG=skia:689 TEST=Run gm

Patch Set 1 #

Patch Set 2 : Remove an extra file #

Total comments: 32

Patch Set 3 : Code review fixes #

Total comments: 2

Patch Set 4 : Code review fixes #

Total comments: 38

Patch Set 5 : Code review fixes #

Total comments: 4

Patch Set 6 : Code review fixes #

Patch Set 7 : Code review fix #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+404 lines, -9 lines) Patch
A gm/base-linux/imagemagnifier_4444.png View 1 2 3 4 5 0 chunks +-1 lines, --1 lines 0 comments Download
A gm/base-linux/imagemagnifier_565.png View 1 2 3 4 5 0 chunks +-1 lines, --1 lines 0 comments Download
A gm/base-linux/imagemagnifier_8888.png View 1 2 3 4 5 0 chunks +-1 lines, --1 lines 0 comments Download
A gm/base-linux/imagemagnifier_gpu.png View 1 2 3 4 5 0 chunks +-1 lines, --1 lines 0 comments Download
A gm/base-linux/imagemagnifier_msaa16.png View 1 2 3 4 5 0 chunks +-1 lines, --1 lines 0 comments Download
A gm/base-linux/imagezoom_pdf.pdf View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
A + gm/imagemagnifier.cpp View 1 2 3 4 5 2 chunks +18 lines, -14 lines 0 comments Download
M gyp/effects.gyp View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M gyp/gmslides.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A include/effects/SkMagnifierImageFilter.h View 1 2 3 4 5 6 1 chunk +37 lines, -0 lines 0 comments Download
M include/gpu/GrContext.h View 1 2 3 4 5 1 chunk +17 lines, -0 lines 0 comments Download
A src/effects/SkMagnifierImageFilter.cpp View 1 2 3 4 5 6 1 chunk +331 lines, -0 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M src/ports/SkGlobalInitialization_chromium.cpp View 2 chunks +2 lines, -0 lines 2 comments Download
M src/ports/SkGlobalInitialization_default.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 1 comment Download

Messages

Total messages: 28
zork
Hello Stephen, Could you review this at: https://codereview.appspot.com/6354065 Thanks, -Zach
12 years, 5 months ago (2012-07-03 06:16:03 UTC) #1
Stephen White
I've added some preliminary comments, but I think Mike and Brian will want to take ...
12 years, 5 months ago (2012-07-03 15:05:12 UTC) #2
Stephen White
https://codereview.appspot.com/6354065/diff/5001/include/gpu/GrContext.h File include/gpu/GrContext.h (right): https://codereview.appspot.com/6354065/diff/5001/include/gpu/GrContext.h#newcode619 include/gpu/GrContext.h:619: * @param temp2 A scratch texture. May be NULL, ...
12 years, 5 months ago (2012-07-03 15:06:19 UTC) #3
TomH
Yep, I think the Ganesh side is good, but I'd like Brian to take a ...
12 years, 5 months ago (2012-07-03 15:14:25 UTC) #4
bsalomon
https://codereview.appspot.com/6354065/diff/5001/src/gpu/effects/GrZoomEffect.cpp File src/gpu/effects/GrZoomEffect.cpp (right): https://codereview.appspot.com/6354065/diff/5001/src/gpu/effects/GrZoomEffect.cpp#newcode126 src/gpu/effects/GrZoomEffect.cpp:126: code->appendf("\t\t\tlowp float x_weight = (x_dist * x_dist);\n"); Is lowp ...
12 years, 5 months ago (2012-07-03 15:38:27 UTC) #5
bsalomon
Would the effect look better if you used bilerp on the borders (or perhaps gradient ...
12 years, 4 months ago (2012-07-18 18:39:33 UTC) #6
zork
http://codereview.appspot.com/6354065/diff/5001/include/effects/SkZoomImageFilter.h File include/effects/SkZoomImageFilter.h (right): http://codereview.appspot.com/6354065/diff/5001/include/effects/SkZoomImageFilter.h#newcode31 include/effects/SkZoomImageFilter.h:31: SkPoint origin_; On 2012/07/03 15:05:12, Stephen White wrote: > ...
12 years, 4 months ago (2012-07-31 08:29:34 UTC) #7
Stephen White
http://codereview.appspot.com/6354065/diff/19001/gm/imagezoom.cpp File gm/imagezoom.cpp (right): http://codereview.appspot.com/6354065/diff/19001/gm/imagezoom.cpp#newcode9 gm/imagezoom.cpp:9: #include "SkZoomImageFilter.h" This file still seems to think it ...
12 years, 4 months ago (2012-07-31 14:28:58 UTC) #8
bsalomon
Overall this is looking good. I have some nits. One other detail: We should add ...
12 years, 4 months ago (2012-07-31 15:17:32 UTC) #9
reed1
in general, are we setup to allow app/client added effects (like this one) to be ...
12 years, 4 months ago (2012-07-31 15:51:42 UTC) #10
bsalomon
On 2012/07/31 15:51:42, reed1 wrote: > in general, are we setup to allow app/client added ...
12 years, 4 months ago (2012-07-31 15:56:39 UTC) #11
zork
http://codereview.appspot.com/6354065/diff/19001/gm/imagezoom.cpp File gm/imagezoom.cpp (right): http://codereview.appspot.com/6354065/diff/19001/gm/imagezoom.cpp#newcode9 gm/imagezoom.cpp:9: #include "SkZoomImageFilter.h" Definitely a git-svn issue. It's being too ...
12 years, 4 months ago (2012-08-01 01:18:16 UTC) #12
TomH
On 2012/08/01 01:18:16, zork wrote: > http://codereview.appspot.com/6354065/diff/19001/src/gpu/effects/GrZoomEffect.h > File src/gpu/effects/GrZoomEffect.h (right): > > http://codereview.appspot.com/6354065/diff/19001/src/gpu/effects/GrZoomEffect.h#newcode1 > ...
12 years, 4 months ago (2012-08-01 14:04:30 UTC) #13
bsalomon
I think this is looking pretty good. Can we add it to the unit test ...
12 years, 4 months ago (2012-08-01 14:16:36 UTC) #14
TomH
http://codereview.appspot.com/6354065/diff/29001/src/effects/SkZoomImageFilter.cpp File src/effects/SkZoomImageFilter.cpp (right): http://codereview.appspot.com/6354065/diff/29001/src/effects/SkZoomImageFilter.cpp#newcode87 src/effects/SkZoomImageFilter.cpp:87: if (x_dist < 2 && y_dist < 2) { ...
12 years, 4 months ago (2012-08-01 19:26:20 UTC) #15
zork
I inlined the effect, and renamed it to magnifier. Where did you want me to ...
12 years, 4 months ago (2012-08-08 05:05:57 UTC) #16
bsalomon
On 2012/08/08 05:05:57, zork wrote: > I inlined the effect, and renamed it to magnifier. ...
12 years, 4 months ago (2012-08-08 13:02:25 UTC) #17
zork
Added a test section. out/Debug/tests seems to pass. Do I need to add any extra ...
12 years, 3 months ago (2012-08-13 09:28:50 UTC) #18
TomH
On 2012/08/13 09:28:50, zork wrote: > Added a test section. out/Debug/tests seems to pass. Do ...
12 years, 3 months ago (2012-08-13 14:02:44 UTC) #19
bsalomon
I landed this at r5056. You can see I (unfortunately) had to modify GLProgramsTest.cpp to ...
12 years, 3 months ago (2012-08-13 14:26:53 UTC) #20
TomH
r5061 replaces std::min and std::max with SkScalarMin and SkScalarMax to fix the Windows build; we're ...
12 years, 3 months ago (2012-08-13 15:20:22 UTC) #21
bsalomon
On 2012/08/13 15:20:22, TomH wrote: > r5061 replaces std::min and std::max with SkScalarMin and SkScalarMax ...
12 years, 3 months ago (2012-08-13 15:34:15 UTC) #22
Stephen White
Some post-landing comments.. https://codereview.appspot.com/6354065/diff/36001/src/ports/SkGlobalInitialization_chromium.cpp File src/ports/SkGlobalInitialization_chromium.cpp (right): https://codereview.appspot.com/6354065/diff/36001/src/ports/SkGlobalInitialization_chromium.cpp#newcode18 src/ports/SkGlobalInitialization_chromium.cpp:18: #include "SkZoomImageFilter.h" Shouldn't this now be ...
12 years, 3 months ago (2012-08-13 15:43:23 UTC) #23
Stephen White
https://codereview.appspot.com/6354065/diff/36001/src/ports/SkGlobalInitialization_default.cpp File src/ports/SkGlobalInitialization_default.cpp (right): https://codereview.appspot.com/6354065/diff/36001/src/ports/SkGlobalInitialization_default.cpp#newcode48 src/ports/SkGlobalInitialization_default.cpp:48: #include "SkZoomImageFilter.h" Also here.
12 years, 3 months ago (2012-08-13 15:44:23 UTC) #24
TomH
On 2012/08/13 15:43:23, Stephen White wrote: > Some post-landing comments.. > > https://codereview.appspot.com/6354065/diff/36001/src/ports/SkGlobalInitialization_chromium.cpp > File ...
12 years, 3 months ago (2012-08-13 15:45:54 UTC) #25
chudy
I'm working on clearing up all the excess warnings in the android portion of the ...
12 years, 3 months ago (2012-08-13 16:28:53 UTC) #26
TomH
zork@, since this is landed, please close it when you get a chance.
12 years, 3 months ago (2012-08-17 15:48:20 UTC) #27
bungeman
12 years, 3 months ago (2012-08-17 15:58:19 UTC) #28
On 2012/08/17 15:48:20, TomH wrote:
> zork@, since this is landed, please close it when you get a chance.

zork@, also see https://code.google.com/p/skia/issues/detail?id=781 .
Sign in to reply to this message.

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