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

Issue 988413003: Change device creation to see the (optional) layer-paint (Closed)

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

Description

Change device creation to see the (optional) layer-paint Motivation: PDFDevice currently relies on 1) being told that the layer's paint has an imagefilter, and in the case, it creates a rasterdevice. It then relies on (2) canvas itself sniffing the layer's paint and offering to apply-the-imagefilter to call drawSprite instead of drawDevice. This subtle interchange is fragile, and also does not support other unsupported PDF features like colorfilters. This CL is a step toward making this use-raster-instead-of-native approach to layers more completely in the subclass' hands. Committed: https://skia.googlesource.com/skia/+/1182d9a96b80bd12183ee7c81325a979a51ee0c0

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : xpsdevice #

Patch Set 5 : fix unused param warning #

Patch Set 6 : address comment from #8 #

Patch Set 7 : #

Total comments: 8

Patch Set 8 : rebase #

Patch Set 9 : address comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -88 lines) Patch
M include/core/SkBitmapDevice.h View 1 2 3 4 2 chunks +2 lines, -6 lines 0 comments Download
M include/core/SkCanvas.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -2 lines 0 comments Download
M include/core/SkDevice.h View 1 2 3 4 5 6 7 8 4 chunks +27 lines, -21 lines 0 comments Download
M include/device/xps/SkXPSDevice.h View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M src/core/SkBitmapDevice.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkCanvas.cpp View 1 2 3 4 5 6 7 8 5 chunks +18 lines, -21 lines 1 comment Download
M src/core/SkDevice.cpp View 2 chunks +5 lines, -8 lines 0 comments Download
M src/core/SkDeviceImageFilterProxy.h View 1 chunk +3 lines, -3 lines 0 comments Download
M src/device/xps/SkXPSDevice.cpp View 1 2 3 4 5 6 7 2 chunks +1 line, -4 lines 0 comments Download
M src/gpu/SkGpuDevice.h View 2 chunks +4 lines, -4 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pdf/SkPDFDevice.h View 1 chunk +1 line, -2 lines 0 comments Download
M src/pdf/SkPDFDevice.cpp View 1 2 3 4 5 1 chunk +8 lines, -2 lines 0 comments Download
M src/utils/SkDeferredCanvas.cpp View 3 chunks +3 lines, -9 lines 0 comments Download

Messages

Total messages: 28 (11 generated)
reed1
5 years, 9 months ago (2015-03-09 18:19:14 UTC) #2
reed1
PTAL
5 years, 9 months ago (2015-03-09 20:22:44 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/988413003/40001
5 years, 9 months ago (2015-03-09 20:23:12 UTC) #5
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
5 years, 9 months ago (2015-03-09 20:23:12 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: Build-Ubuntu13.10-GCC4.8-Arm7-Debug-Android-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu13.10-GCC4.8-Arm7-Debug-Android-Trybot/builds/2417)
5 years, 9 months ago (2015-03-09 20:24:26 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/988413003/60001
5 years, 9 months ago (2015-03-09 20:52:32 UTC) #10
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
5 years, 9 months ago (2015-03-09 20:52:33 UTC) #11
hal.canary
PDF: LGTM https://codereview.chromium.org/988413003/diff/40001/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): https://codereview.chromium.org/988413003/diff/40001/src/pdf/SkPDFDevice.cpp#newcode569 src/pdf/SkPDFDevice.cpp:569: bool not_supported_for_layers(const SkPaint& layerPaint) { static bool ...
5 years, 9 months ago (2015-03-09 20:53:18 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: Build-Ubuntu13.10-Clang-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu13.10-Clang-x86_64-Debug-Trybot/builds/2465)
5 years, 9 months ago (2015-03-09 20:54:04 UTC) #14
reed1
https://codereview.chromium.org/988413003/diff/40001/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): https://codereview.chromium.org/988413003/diff/40001/src/pdf/SkPDFDevice.cpp#newcode569 src/pdf/SkPDFDevice.cpp:569: bool not_supported_for_layers(const SkPaint& layerPaint) { On 2015/03/09 20:53:18, Hal ...
5 years, 9 months ago (2015-03-09 21:03:10 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/988413003/100001
5 years, 9 months ago (2015-03-09 21:12:02 UTC) #18
robertphillips
lgtm modulo the #if'ed out code https://codereview.chromium.org/988413003/diff/120001/include/core/SkDevice.h File include/core/SkDevice.h (right): https://codereview.chromium.org/988413003/diff/120001/include/core/SkDevice.h#newcode331 include/core/SkDevice.h:331: construct -> constructor ...
5 years, 9 months ago (2015-03-10 13:49:25 UTC) #20
reed1
PTAL https://codereview.chromium.org/988413003/diff/120001/include/core/SkDevice.h File include/core/SkDevice.h (right): https://codereview.chromium.org/988413003/diff/120001/include/core/SkDevice.h#newcode331 include/core/SkDevice.h:331: On 2015/03/10 13:49:25, robertphillips wrote: > construct -> ...
5 years, 9 months ago (2015-03-13 14:07:09 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/988413003/160001
5 years, 9 months ago (2015-03-13 14:07:32 UTC) #24
commit-bot: I haz the power
Committed patchset #9 (id:160001) as https://skia.googlesource.com/skia/+/1182d9a96b80bd12183ee7c81325a979a51ee0c0
5 years, 9 months ago (2015-03-13 14:16:12 UTC) #25
reed1
A revert of this CL (patchset #9 id:160001) has been created in https://codereview.chromium.org/1008863002/ by reed@google.com. ...
5 years, 9 months ago (2015-03-13 14:27:56 UTC) #26
Stephen White
5 years, 9 months ago (2015-03-13 19:34:48 UTC) #28
Message was sent while issue was closed.
https://codereview.chromium.org/988413003/diff/160001/src/core/SkCanvas.cpp
File src/core/SkCanvas.cpp (right):

https://codereview.chromium.org/988413003/diff/160001/src/core/SkCanvas.cpp#n...
src/core/SkCanvas.cpp:939: // Related to
https://code.google.com/p/skia/issues/detail?id=3519 ?
I don't think so. I think this is related to the use of exact-match vs.
approx-match textures as filter backing stores on the GPU path. Some filters
give incorrect results with approx-match textures. It may be possible to fix the
affected filters through the use of texture coordinate clamping in the shader.

I've logged skbug.com/3532 for this.

Powered by Google App Engine
This is Rietveld 408576698