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

Issue 862113004: Simplify SkPDFShader class. Now invalid objects are never created. (Closed)

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

Description

Simplify SkPDFShader class. Now invalid objects are never created. "Constructors should not do real work" I have verified that all test PDFs render identically. Committed: https://skia.googlesource.com/skia/+/bc59ac6b12bbded2117fe3aa9643b2d138e5ddda

Patch Set 1 #

Total comments: 2

Patch Set 2 : get rid of fSelf crazyness #

Total comments: 2

Patch Set 3 : Another Patch Set #

Total comments: 13

Patch Set 4 : again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -130 lines) Patch
M src/pdf/SkPDFShader.h View 1 2 1 chunk +1 line, -4 lines 0 comments Download
M src/pdf/SkPDFShader.cpp View 1 2 3 19 chunks +154 lines, -126 lines 0 comments Download

Messages

Total messages: 21 (4 generated)
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/862113004/1
5 years, 11 months ago (2015-01-21 23:14:05 UTC) #2
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
5 years, 11 months ago (2015-01-21 23:14:06 UTC) #3
hal.canary
ptal
5 years, 11 months ago (2015-01-21 23:14:13 UTC) #5
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Please ask for an LGTM from a full ...
5 years, 11 months ago (2015-01-22 05:14:07 UTC) #7
mtklein
You're blowing my mind Hal. https://codereview.chromium.org/862113004/diff/1/src/pdf/SkPDFShader.cpp File src/pdf/SkPDFShader.cpp (right): https://codereview.chromium.org/862113004/diff/1/src/pdf/SkPDFShader.cpp#newcode746 src/pdf/SkPDFShader.cpp:746: alphaFunctionShader->fSelf = alphaFunctionShader; What ...
5 years, 11 months ago (2015-01-22 15:54:31 UTC) #8
hal.canary
On 2015/01/22 15:54:31, mtklein wrote: > You're blowing my mind Hal. > Since it's such ...
5 years, 11 months ago (2015-01-22 18:23:00 UTC) #9
mtklein
https://codereview.chromium.org/862113004/diff/20001/src/pdf/SkPDFShader.h File src/pdf/SkPDFShader.h (right): https://codereview.chromium.org/862113004/diff/20001/src/pdf/SkPDFShader.h#newcode62 src/pdf/SkPDFShader.h:62: virtual SkPDFObject* toPDFObject() = 0; Uh, wait, what's really ...
5 years, 11 months ago (2015-01-22 18:32:41 UTC) #10
hal.canary
On 2015/01/22 18:32:41, mtklein wrote: > https://codereview.chromium.org/862113004/diff/20001/src/pdf/SkPDFShader.h > File src/pdf/SkPDFShader.h (right): > > https://codereview.chromium.org/862113004/diff/20001/src/pdf/SkPDFShader.h#newcode62 > ...
5 years, 11 months ago (2015-01-22 18:44:58 UTC) #11
hal.canary
On 2015/01/22 18:44:58, Hal Canary wrote: > On 2015/01/22 18:32:41, mtklein wrote: > > https://codereview.chromium.org/862113004/diff/20001/src/pdf/SkPDFShader.h ...
5 years, 11 months ago (2015-01-22 18:47:04 UTC) #12
mtklein
https://codereview.chromium.org/862113004/diff/20001/src/pdf/SkPDFShader.cpp File src/pdf/SkPDFShader.cpp (right): https://codereview.chromium.org/862113004/diff/20001/src/pdf/SkPDFShader.cpp#newcode729 src/pdf/SkPDFShader.cpp:729: return NULL; This leaks state. You might want to ...
5 years, 11 months ago (2015-01-22 18:51:36 UTC) #13
hal.canary
On 2015/01/22 18:51:36, mtklein wrote: > This leaks state. You might want to pass SkAutoTDelete<State>* ...
5 years, 11 months ago (2015-01-22 21:05:09 UTC) #14
hal.canary
I mean "I did that and please take a look."
5 years, 11 months ago (2015-01-22 21:05:40 UTC) #15
mtklein
I know you like clang-format, but please keep in mind it does not absolve you ...
5 years, 11 months ago (2015-01-22 21:16:33 UTC) #16
hal.canary
https://codereview.chromium.org/862113004/diff/40001/src/pdf/SkPDFShader.cpp File src/pdf/SkPDFShader.cpp (right): https://codereview.chromium.org/862113004/diff/40001/src/pdf/SkPDFShader.cpp#newcode603 src/pdf/SkPDFShader.cpp:603: SkAutoTDelete<State>& state = *statePtr; On 2015/01/22 21:16:32, mtklein wrote: ...
5 years, 11 months ago (2015-01-22 21:46:00 UTC) #17
mtklein
lgtm https://codereview.chromium.org/862113004/diff/40001/src/pdf/SkPDFShader.cpp File src/pdf/SkPDFShader.cpp (right): https://codereview.chromium.org/862113004/diff/40001/src/pdf/SkPDFShader.cpp#newcode603 src/pdf/SkPDFShader.cpp:603: SkAutoTDelete<State>& state = *statePtr; On 2015/01/22 21:46:00, Hal ...
5 years, 11 months ago (2015-01-22 21:54:21 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/862113004/60001
5 years, 11 months ago (2015-01-22 21:55:51 UTC) #20
commit-bot: I haz the power
5 years, 11 months ago (2015-01-23 12:18:59 UTC) #21
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://skia.googlesource.com/skia/+/bc59ac6b12bbded2117fe3aa9643b2d138e5ddda

Powered by Google App Engine
This is Rietveld 408576698