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

Issue 463493002: SkCanvas::drawPatch param SkPoint[12] (Closed)

Created:
6 years, 4 months ago by dandov
Modified:
6 years, 4 months ago
Reviewers:
egdaniel, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

SkCanvas::drawPatch param SkPoint[12] drawPatch now receives as parameter const SkPoint cubics[12] Adjusted derived classes and serialization. Ajusted GM's and benches that take into account combinations of optional parameters, the scale of the patch and 4 different types of patches. Planning on adding the extra functionality of SkPatch in another CL. BUG=skia: Committed: https://skia.googlesource.com/skia/+/b3c9d1c33caf325aada244204215eb790c228c12

Patch Set 1 #

Total comments: 2

Patch Set 2 : Virtual call onDrawPatch #

Total comments: 2

Patch Set 3 : Common debug/checks in SkCanvas::drawPatch #

Patch Set 4 : Removed SkPatch file and passed utils to SkPatchUtils #

Patch Set 5 : Fix changes for SkPictureRecord #

Patch Set 6 : Rebased for SkPictureRecord #

Total comments: 2

Patch Set 7 : GM fixed #

Patch Set 8 : Removed SkPathUtils.h header from SkCanvas.h #

Patch Set 9 : Fixed PatchBench #

Patch Set 10 : Removed GPU headers from GM #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1061 lines, -628 lines) Patch
A bench/PatchBench.cpp View 1 2 3 4 5 6 7 8 1 chunk +325 lines, -0 lines 0 comments Download
M gm/patch.cpp View 1 2 3 4 5 6 7 8 9 4 chunks +81 lines, -59 lines 0 comments Download
M gyp/bench.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M gyp/core.gypi View 1 2 3 4 5 2 chunks +0 lines, -2 lines 0 comments Download
M include/core/SkCanvas.h View 1 2 3 4 5 6 7 3 chunks +15 lines, -6 lines 0 comments Download
M include/core/SkDevice.h View 1 chunk +2 lines, -1 line 0 comments Download
M include/core/SkPatch.h View 1 2 3 1 chunk +0 lines, -182 lines 0 comments Download
M include/core/SkReadBuffer.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M include/core/SkReader32.h View 1 2 3 2 chunks +0 lines, -5 lines 0 comments Download
M include/core/SkWriter32.h View 1 2 3 2 chunks +0 lines, -7 lines 0 comments Download
M include/utils/SkDeferredCanvas.h View 1 2 chunks +4 lines, -2 lines 0 comments Download
M include/utils/SkDumpCanvas.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M include/utils/SkNWayCanvas.h View 1 2 chunks +4 lines, -2 lines 0 comments Download
M include/utils/SkProxyCanvas.h View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M src/core/SkBBoxRecord.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M src/core/SkBBoxRecord.cpp View 1 2 3 4 5 6 7 2 chunks +6 lines, -4 lines 0 comments Download
M src/core/SkCanvas.cpp View 1 2 3 4 5 6 7 2 chunks +14 lines, -3 lines 0 comments Download
M src/core/SkDevice.cpp View 1 2 3 1 chunk +7 lines, -5 lines 0 comments Download
M src/core/SkPatch.cpp View 1 2 3 1 chunk +0 lines, -262 lines 0 comments Download
M src/core/SkPicturePlayback.cpp View 1 2 3 4 5 6 7 2 chunks +23 lines, -3 lines 0 comments Download
M src/core/SkPictureRecord.h View 1 2 3 4 5 3 chunks +5 lines, -2 lines 0 comments Download
M src/core/SkPictureRecord.cpp View 1 2 3 4 5 6 7 3 chunks +43 lines, -10 lines 0 comments Download
M src/core/SkReadBuffer.cpp View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M src/core/SkRecordDraw.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkRecorder.h View 1 2 chunks +4 lines, -1 line 0 comments Download
M src/core/SkRecorder.cpp View 1 2 3 4 5 6 7 2 chunks +8 lines, -2 lines 0 comments Download
M src/core/SkRecords.h View 2 chunks +19 lines, -1 line 0 comments Download
M src/core/SkValidatingReadBuffer.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M src/core/SkValidatingReadBuffer.cpp View 1 2 3 1 chunk +0 lines, -11 lines 0 comments Download
M src/pipe/SkGPipeRead.cpp View 1 2 3 4 5 6 7 2 chunks +23 lines, -3 lines 0 comments Download
M src/pipe/SkGPipeWrite.cpp View 1 2 3 4 5 6 7 4 chunks +44 lines, -6 lines 0 comments Download
M src/utils/SkDeferredCanvas.cpp View 1 2 2 chunks +7 lines, -3 lines 0 comments Download
M src/utils/SkDumpCanvas.cpp View 1 2 3 4 5 6 7 2 chunks +17 lines, -9 lines 0 comments Download
M src/utils/SkNWayCanvas.cpp View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M src/utils/SkPatchUtils.h View 1 2 3 1 chunk +101 lines, -3 lines 0 comments Download
M src/utils/SkPatchUtils.cpp View 1 2 3 2 chunks +288 lines, -19 lines 0 comments Download
M src/utils/SkProxyCanvas.cpp View 1 2 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
dandov
6 years, 4 months ago (2014-08-11 13:41:35 UTC) #1
reed1
https://codereview.chromium.org/463493002/diff/1/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/463493002/diff/1/include/core/SkCanvas.h#newcode1038 include/core/SkCanvas.h:1038: virtual void drawPatch(const SkPoint cubics[12], const SkColor colors[4], I ...
6 years, 4 months ago (2014-08-11 13:50:23 UTC) #2
dandov
https://codereview.chromium.org/463493002/diff/1/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/463493002/diff/1/include/core/SkCanvas.h#newcode1038 include/core/SkCanvas.h:1038: virtual void drawPatch(const SkPoint cubics[12], const SkColor colors[4], On ...
6 years, 4 months ago (2014-08-11 14:45:07 UTC) #3
reed1
There is a lot in the public header SkPatch.h, and we don't take it in ...
6 years, 4 months ago (2014-08-11 15:38:44 UTC) #4
dandov
Removed the skpatch file because now it's not used, will add it again when i ...
6 years, 4 months ago (2014-08-11 18:07:52 UTC) #5
reed1
On 2014/08/11 18:07:52, dandov wrote: > Removed the skpatch file because now it's not used, ...
6 years, 4 months ago (2014-08-11 18:15:36 UTC) #6
dandov
Had to rebase my branch because there was a big change in SkPictureRecord yesterday and ...
6 years, 4 months ago (2014-08-12 13:12:52 UTC) #7
reed1
lgtm https://codereview.chromium.org/463493002/diff/100001/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/463493002/diff/100001/include/core/SkCanvas.h#newcode16 include/core/SkCanvas.h:16: #include "SkPatchUtils.h" Does SkCanvas.h need this header?
6 years, 4 months ago (2014-08-12 13:33:02 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/dandov@google.com/463493002/100001
6 years, 4 months ago (2014-08-12 13:33:19 UTC) #9
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: Build-Win-VS2013-x86-Debug-Trybot on tryserver.skia ...
6 years, 4 months ago (2014-08-12 13:41:51 UTC) #10
dandov
The CQ bit was checked by dandov@google.com
6 years, 4 months ago (2014-08-12 14:59:02 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/dandov@google.com/463493002/160001
6 years, 4 months ago (2014-08-12 14:59:51 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: Test-Ubuntu13.10-GCE-NoGPU-x86_64-Debug-Trybot on tryserver.skia ...
6 years, 4 months ago (2014-08-12 15:02:58 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-12 15:04:48 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: Test-Ubuntu13.10-GCE-NoGPU-x86_64-Debug-Trybot on tryserver.skia (http://108.170.220.120:10117/builders/Test-Ubuntu13.10-GCE-NoGPU-x86_64-Debug-Trybot/builds/174)
6 years, 4 months ago (2014-08-12 15:04:49 UTC) #15
dandov
The CQ bit was checked by dandov@google.com
6 years, 4 months ago (2014-08-12 15:21:31 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/dandov@google.com/463493002/180001
6 years, 4 months ago (2014-08-12 15:21:47 UTC) #17
dandov
Did some changes to the CL: *Fixed loss of precision warning in GM. *Removed the ...
6 years, 4 months ago (2014-08-12 15:23:31 UTC) #18
commit-bot: I haz the power
6 years, 4 months ago (2014-08-12 15:34:35 UTC) #19
Message was sent while issue was closed.
Change committed as b3c9d1c33caf325aada244204215eb790c228c12

Powered by Google App Engine
This is Rietveld 408576698