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

Issue 1577933002: SkPaintFilterCanvas skip-draw support (Closed)

Created:
4 years, 11 months ago by f(malita)
Modified:
4 years, 11 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

SkPaintFilterCanvas skip-draw support At the time SkPaintFilterCanvas was introduced as a SkDrawFilter replacement, no clients were relying on the draw veto logic. Now Chromium does. To facilitate migrating off SkDrawFilter, let's augment SkPaintFilterCanvas with skip-draw semantics. A side effect of the CL is that now we call the filter virtual even for null paints. BUG=skia:4782 R=reed@google.com,robertphillips@google.com GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1577933002 Committed: https://skia.googlesource.com/skia/+/bad23dc9ed2e00f2a066db01ab88e4c4adcecfc6

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 1

Patch Set 3 : lazy paint copy + missing onDrawImageNine override #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -54 lines) Patch
M include/utils/SkPaintFilterCanvas.h View 1 2 3 chunks +24 lines, -6 lines 0 comments Download
M samplecode/SampleApp.cpp View 1 2 1 chunk +14 lines, -9 lines 0 comments Download
M src/utils/SkPaintFilterCanvas.cpp View 1 2 3 chunks +83 lines, -31 lines 0 comments Download
M src/utils/debugger/SkDebugCanvas.cpp View 1 2 1 chunk +11 lines, -7 lines 0 comments Download
M tests/CanvasTest.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 25 (10 generated)
f(malita)
Not crazy about piling more stuff onto SkPaintFilterCanvas, but the alternative is ~6 SkCanvas method ...
4 years, 11 months ago (2016-01-11 19:29:45 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1577933002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1577933002/20001
4 years, 11 months ago (2016-01-11 19:29:59 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-11 19:37:48 UTC) #8
reed1
note: Chrome's use always treats the paint as RO, while this (and SkDrawFilter) first copy ...
4 years, 11 months ago (2016-01-11 19:38:57 UTC) #9
f(malita)
On 2016/01/11 19:38:57, reed1 wrote: > note: > > Chrome's use always treats the paint ...
4 years, 11 months ago (2016-01-11 19:52:17 UTC) #10
reed1
that said, TODAY we have the same copy, and it seems ok, so I'm not ...
4 years, 11 months ago (2016-01-11 20:12:23 UTC) #11
f(malita)
On 2016/01/11 20:12:23, reed1 wrote: > that said, TODAY we have the same copy, and ...
4 years, 11 months ago (2016-01-11 21:02:37 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1577933002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1577933002/40001
4 years, 11 months ago (2016-01-11 21:02:55 UTC) #14
reed1
1. Is the idea that chrome and android will both use this (modified) subclass? 2. ...
4 years, 11 months ago (2016-01-11 21:07:33 UTC) #15
f(malita)
On 2016/01/11 21:07:33, reed1 wrote: > 1. Is the idea that chrome and android will ...
4 years, 11 months ago (2016-01-11 21:11:49 UTC) #16
reed1
On 2016/01/11 21:11:49, f(malita) wrote: > On 2016/01/11 21:07:33, reed1 wrote: > > 1. Is ...
4 years, 11 months ago (2016-01-11 21:14:58 UTC) #17
reed1
lgtm would be really great if this helps us remove android's dependency on DrawFilters too.
4 years, 11 months ago (2016-01-11 21:15:46 UTC) #19
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-11 21:16:46 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1577933002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1577933002/40001
4 years, 11 months ago (2016-01-11 21:57:51 UTC) #23
commit-bot: I haz the power
4 years, 11 months ago (2016-01-11 21:58:32 UTC) #25
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/bad23dc9ed2e00f2a066db01ab88e4c4adcecfc6

Powered by Google App Engine
This is Rietveld 408576698