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

Issue 5856048: apply imagefilter to all draw calls (Closed)

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

Description

apply imagefilter to all draw calls Committed: https://code.google.com/p/skia/source/detail?r=3476

Patch Set 1 #

Patch Set 2 : #

Total comments: 1

Patch Set 3 : #

Patch Set 4 : #

Total comments: 1

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Total comments: 3

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+440 lines, -121 lines) Patch
A trunk/gm/imagefiltersbase.cpp View 1 2 3 4 1 chunk +215 lines, -0 lines 0 comments Download
M trunk/gyp/gmslides.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M trunk/include/core/SkCanvas.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -2 lines 0 comments Download
M trunk/include/core/SkDevice.h View 1 2 3 4 5 6 7 1 chunk +15 lines, -6 lines 0 comments Download
M trunk/include/core/SkImageFilter.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -2 lines 0 comments Download
M trunk/include/gpu/SkGpuDevice.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M trunk/src/core/SkCanvas.cpp View 1 2 3 4 5 6 7 11 chunks +98 lines, -48 lines 0 comments Download
M trunk/src/core/SkDevice.cpp View 1 2 3 4 5 6 7 1 chunk +7 lines, -3 lines 0 comments Download
M trunk/src/gpu/SkGpuDevice.cpp View 1 2 3 4 5 6 7 4 chunks +93 lines, -57 lines 0 comments Download

Messages

Total messages: 19
reed1
this is the CL in mid-testing. posting now just to compare w/ Steven's change to ...
12 years, 3 months ago (2012-03-22 14:14:01 UTC) #1
Stephen White
https://codereview.appspot.com/5856048/diff/1001/trunk/src/core/SkCanvas.cpp File trunk/src/core/SkCanvas.cpp (right): https://codereview.appspot.com/5856048/diff/1001/trunk/src/core/SkCanvas.cpp#newcode1629 trunk/src/core/SkCanvas.cpp:1629: LOOPER_BEGIN_DRAWDEVICE(*paint, SkDrawFilter::kBitmap_Type) It seems the image filters are not ...
12 years, 3 months ago (2012-03-22 15:58:10 UTC) #2
reed1
#4 leaves some #if 0 code in, just to remind me of what I think ...
12 years, 3 months ago (2012-03-22 16:28:00 UTC) #3
reed1
In this version, gpu::drawDevice is ignoring the imagefilter, but drawSprite is handling it. Stephen, is ...
12 years, 3 months ago (2012-03-22 16:28:57 UTC) #4
Stephen White
Although this does fix the problems with the previous patch, I actually prefer the previous ...
12 years, 3 months ago (2012-03-22 17:34:10 UTC) #5
reed1
restores SkDevice::filterImage(), though it is not called in the fast-case (relies on Device to notice ...
12 years, 3 months ago (2012-03-22 20:44:30 UTC) #6
reed1
Stephen, 1. from our chat, I presume you know how to make SkGpuDevice::filterImage more efficient ...
12 years, 3 months ago (2012-03-22 21:09:06 UTC) #7
Stephen White
On 2012/03/22 21:09:06, reed1 wrote: > Stephen, > > 1. from our chat, I presume ...
12 years, 3 months ago (2012-03-22 21:41:28 UTC) #8
Stephen White
On 2012/03/22 21:41:28, Stephen White wrote: > On 2012/03/22 21:09:06, reed1 wrote: > > Stephen, ...
12 years, 3 months ago (2012-03-22 23:19:49 UTC) #9
reed1
Decided to go with stephen's option #1, as it allows other filters to be done ...
12 years, 3 months ago (2012-03-23 14:02:48 UTC) #10
Stephen White
I'm ok with this. Leaving for Brian to check my work on the GPU side.
12 years, 3 months ago (2012-03-23 14:16:04 UTC) #11
reed1
me too. Brian?
12 years, 3 months ago (2012-03-23 14:20:23 UTC) #12
TomH
Putting on my Brian hat, the SkGpuDevice changes almost look OK to me (although really ...
12 years, 3 months ago (2012-03-23 15:17:19 UTC) #13
reed1
On 2012/03/23 15:17:19, TomH wrote: > Putting on my Brian hat, the SkGpuDevice changes almost ...
12 years, 3 months ago (2012-03-23 15:27:04 UTC) #14
TomH
LGTM
12 years, 3 months ago (2012-03-23 15:27:39 UTC) #15
Stephen White
On 2012/03/23 15:17:19, TomH wrote: > Putting on my Brian hat, the SkGpuDevice changes almost ...
12 years, 3 months ago (2012-03-23 15:28:23 UTC) #16
Stephen White
On 2012/03/23 15:28:23, Stephen White wrote: > On 2012/03/23 15:17:19, TomH wrote: > > Putting ...
12 years, 3 months ago (2012-03-23 15:32:13 UTC) #17
reed1
All are done in patch #7 I count (sans my new function) 9 static functions ...
12 years, 3 months ago (2012-03-23 15:33:11 UTC) #18
bsalomon
12 years, 3 months ago (2012-03-26 13:14:50 UTC) #19
On 2012/03/23 15:33:11, reed1 wrote:
> All are done in patch #7
> 
> I count (sans my new function) 9 static functions and 7 in namespaces, so I
will
> leave it as is, and allow the ganesh boys to decide if they want to unify
around
> one style or the other (skia for the most part uses just static).

My feeling is that the world is moving (has moved) to unnamed namespaces and I
don't want to try to hold the world back. AFAIK the reason is that two static
functions with the same name/signature in different trans. units would either
cause a link error or be conflated but not so with unnamed namespaces.
Sign in to reply to this message.

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