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

Issue 1032173002: Add a paint filter utility canvas (SkPaintFilterCanvas) (Closed)

Created:
5 years, 9 months ago by f(malita)
Modified:
5 years, 9 months ago
CC:
reviews_skia.org
Base URL:
https://chromium.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Add a paint filter utility canvas (SkPaintFilterCanvas) Introduce a paint filter proxy base class as a SkDrawFilter replacement, and convert SkDebugCanvas to use the new approach. BUG=skia:3587 R=reed@google.com,mtklein@google.com,robertphillips@google.com,tomhudson@google.com Committed: https://skia.googlesource.com/skia/+/65cdb57ae8fd23ccec5f7f4f86b34e4aa85c45ae

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 19

Patch Set 3 : review comments #

Total comments: 2

Patch Set 4 : filterPaint->onFilterPaint #

Patch Set 5 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+377 lines, -124 lines) Patch
M gyp/utils.gypi View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
A include/utils/SkPaintFilterCanvas.h View 1 2 3 1 chunk +93 lines, -0 lines 0 comments Download
A src/utils/SkPaintFilterCanvas.cpp View 1 2 3 1 chunk +157 lines, -0 lines 0 comments Download
M src/utils/debugger/SkDebugCanvas.h View 1 2 3 4 4 chunks +7 lines, -5 lines 0 comments Download
M src/utils/debugger/SkDebugCanvas.cpp View 1 2 3 4 6 chunks +118 lines, -119 lines 0 comments Download

Messages

Total messages: 19 (5 generated)
f(malita)
The plan is to convert other (all?) SkDrawFilter clients, but the CL focuses on SkDebugCanvas ...
5 years, 9 months ago (2015-03-25 14:13:09 UTC) #1
tomhudson
lgtm https://codereview.chromium.org/1032173002/diff/20001/src/utils/debugger/SkDebugCanvas.cpp File src/utils/debugger/SkDebugCanvas.cpp (right): https://codereview.chromium.org/1032173002/diff/20001/src/utils/debugger/SkDebugCanvas.cpp#newcode71 src/utils/debugger/SkDebugCanvas.cpp:71: if (fOverdrawXfermode) { Is there some reasonable way ...
5 years, 9 months ago (2015-03-25 14:52:51 UTC) #2
robertphillips
https://codereview.chromium.org/1032173002/diff/20001/include/utils/SkPaintFilterCanvas.h File include/utils/SkPaintFilterCanvas.h (right): https://codereview.chromium.org/1032173002/diff/20001/include/utils/SkPaintFilterCanvas.h#newcode46 include/utils/SkPaintFilterCanvas.h:46: Are we now using "override" instead of "SK_OVERRIDE" ? ...
5 years, 9 months ago (2015-03-25 15:07:06 UTC) #3
f(malita)
https://codereview.chromium.org/1032173002/diff/20001/include/utils/SkPaintFilterCanvas.h File include/utils/SkPaintFilterCanvas.h (right): https://codereview.chromium.org/1032173002/diff/20001/include/utils/SkPaintFilterCanvas.h#newcode46 include/utils/SkPaintFilterCanvas.h:46: On 2015/03/25 15:07:06, robertphillips wrote: > Are we now ...
5 years, 9 months ago (2015-03-25 15:29:23 UTC) #4
mtklein
https://codereview.chromium.org/1032173002/diff/20001/include/utils/SkPaintFilterCanvas.h File include/utils/SkPaintFilterCanvas.h (right): https://codereview.chromium.org/1032173002/diff/20001/include/utils/SkPaintFilterCanvas.h#newcode46 include/utils/SkPaintFilterCanvas.h:46: On 2015/03/25 15:29:22, f(malita) wrote: > On 2015/03/25 15:07:06, ...
5 years, 9 months ago (2015-03-25 15:39:18 UTC) #5
robertphillips
lgtm
5 years, 9 months ago (2015-03-25 15:44:54 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1032173002/40001
5 years, 9 months ago (2015-03-25 18:14:48 UTC) #9
commit-bot: I haz the power
Presubmit check for 1032173002-40001 failed and returned exit status 1. Running presubmit commit checks ...
5 years, 9 months ago (2015-03-25 18:14:58 UTC) #11
tomhudson
Mike Reed: needs API blessing.
5 years, 9 months ago (2015-03-25 20:18:53 UTC) #12
reed1
https://codereview.chromium.org/1032173002/diff/40001/include/utils/SkPaintFilterCanvas.h File include/utils/SkPaintFilterCanvas.h (right): https://codereview.chromium.org/1032173002/diff/40001/include/utils/SkPaintFilterCanvas.h#newcode48 include/utils/SkPaintFilterCanvas.h:48: virtual void filterPaint(SkPaint* paint, Type type) const = 0; ...
5 years, 9 months ago (2015-03-25 20:34:40 UTC) #13
reed1
Wish I thought there was a clean way to expose/return lazypaint stuff, so that we ...
5 years, 9 months ago (2015-03-25 20:39:17 UTC) #14
f(malita)
https://codereview.chromium.org/1032173002/diff/40001/include/utils/SkPaintFilterCanvas.h File include/utils/SkPaintFilterCanvas.h (right): https://codereview.chromium.org/1032173002/diff/40001/include/utils/SkPaintFilterCanvas.h#newcode48 include/utils/SkPaintFilterCanvas.h:48: virtual void filterPaint(SkPaint* paint, Type type) const = 0; ...
5 years, 9 months ago (2015-03-26 00:37:59 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1032173002/80001
5 years, 9 months ago (2015-03-26 14:16:11 UTC) #18
commit-bot: I haz the power
5 years, 9 months ago (2015-03-26 14:24:51 UTC) #19
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://skia.googlesource.com/skia/+/65cdb57ae8fd23ccec5f7f4f86b34e4aa85c45ae

Powered by Google App Engine
This is Rietveld 408576698