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

Issue 960783003: Add image as a draw type that can be filtered

Created:
5 years, 10 months ago by Kimmo Kinnunen
Modified:
5 years, 9 months ago
Reviewers:
bsalomon, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@skimage-filters-04-snapshot-devices-and-use-snapshots-in-skcanvas
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Add image as a draw type that can be filtered Add image as a draw type that can be filtered. This is needed when SkImage is added as an object to be drawn so that the draw is forwarded to SkBaseDevice. This would be used in making filters use SkImages. BUG=skia:3388 Committed: https://skia.googlesource.com/skia/+/fa77eb1e51b9317ff993d1be504ada173b561e5f

Patch Set 1 #

Patch Set 2 : add a test for looper #

Patch Set 3 : #

Patch Set 4 : rebase #

Patch Set 5 : fix recursive AutoDrawLooper calls #

Patch Set 6 : correct colorformat for test #

Patch Set 7 : remove the looper-related save count fix #

Patch Set 8 : #

Patch Set 9 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -4 lines) Patch
M include/core/SkDrawFilter.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/core/SkCanvas.cpp View 1 2 3 4 5 6 1 chunk +52 lines, -3 lines 0 comments Download
M tests/SkImageTest.cpp View 1 2 3 4 5 6 7 2 chunks +143 lines, -0 lines 0 comments Download
M tools/bench_pictures_main.cpp View 1 2 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (5 generated)
Kimmo Kinnunen
5 years, 10 months ago (2015-02-26 12:25:42 UTC) #2
reed1
Could drawImage not use LOOPER_BEGIN insetad, to reuse that macro?
5 years, 10 months ago (2015-02-26 22:04:18 UTC) #3
Kimmo Kinnunen
On 2015/02/26 22:04:18, reed1 wrote: > Could drawImage not use LOOPER_BEGIN insetad, to reuse that ...
5 years, 9 months ago (2015-02-27 12:21:39 UTC) #4
reed1
lgtm
5 years, 9 months ago (2015-02-27 15:26:26 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/960783003/40001
5 years, 9 months ago (2015-02-27 15:26:41 UTC) #7
commit-bot: I haz the power
Failed to apply patch for tests/SkImageTest.cpp: While running git apply --index -3 -p1; error: patch ...
5 years, 9 months ago (2015-02-27 15:26:44 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/960783003/60001
5 years, 9 months ago (2015-03-05 08:34:08 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://skia.googlesource.com/skia/+/fa77eb1e51b9317ff993d1be504ada173b561e5f
5 years, 9 months ago (2015-03-05 08:39:52 UTC) #13
Kimmo Kinnunen
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/980273002/ by kkinnunen@nvidia.com. ...
5 years, 9 months ago (2015-03-05 12:49:34 UTC) #14
Kimmo Kinnunen
On 2015/03/05 12:49:34, Kimmo Kinnunen wrote: > The reason for reverting is: Fails on mac ...
5 years, 9 months ago (2015-03-05 16:06:21 UTC) #15
reed1
Is the bug/fix that we didn't call fSaveCount += 1 in autodrawlooper? If so, perhaps ...
5 years, 9 months ago (2015-03-06 13:37:56 UTC) #16
Kimmo Kinnunen
5 years, 9 months ago (2015-03-06 13:59:57 UTC) #17
On 2015/03/06 13:37:56, reed1 wrote:
> Is the bug/fix that we didn't call fSaveCount += 1 in autodrawlooper? If so,
> perhaps that should land as its own fix (it seems unrelated to kImage_Type).

Well, at the moment there's no re-entering, so it's matter of definition whether
or not this related to kImage.

The request to use the macro causes the re-entering and the bug.

> Also, I wonder if we can restructure canvas so that this looks more natural
> (e.g. some alternate to the public saveLayer() so that the bookkeeping of
> (private) fSaveCount is still encapsulated).
> 
> If this is the crux, I can sketch the sort of restructure I have in mind...

This is the crux. Feel free to restructure.

Powered by Google App Engine
This is Rietveld 408576698