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

Issue 203203004: Consolidate SkCanvas matrix virtuals. (Closed)

Created:
6 years, 9 months ago by f(malita)
Modified:
6 years, 8 months ago
Reviewers:
robertphillips, reed1
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Consolidate SkCanvas matrix virtuals. Remove didTranslate, didScale, didRotate & didSkew, and rely on didConcat instead. Subclasses can sniff the matrix type if they want to differentiate. (work in progress) R=reed@google.com, robertphillips@google.com Committed: http://code.google.com/p/skia/source/detail?r=13940

Patch Set 1 #

Total comments: 2

Patch Set 2 : Funnel everything through concat() #

Total comments: 14

Patch Set 3 : Updated per review. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -333 lines) Patch
M include/core/SkCanvas.h View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M include/utils/SkDeferredCanvas.h View 1 chunk +0 lines, -4 lines 0 comments Download
M include/utils/SkDumpCanvas.h View 1 chunk +0 lines, -4 lines 0 comments Download
M include/utils/SkLuaCanvas.h View 1 chunk +0 lines, -4 lines 0 comments Download
M include/utils/SkNWayCanvas.h View 1 chunk +0 lines, -4 lines 0 comments Download
M include/utils/SkProxyCanvas.h View 1 chunk +0 lines, -4 lines 0 comments Download
M src/core/SkBBoxHierarchyRecord.h View 1 chunk +0 lines, -4 lines 0 comments Download
M src/core/SkBBoxHierarchyRecord.cpp View 1 chunk +0 lines, -20 lines 0 comments Download
M src/core/SkCanvas.cpp View 1 2 chunks +16 lines, -36 lines 0 comments Download
M src/core/SkPictureRecord.h View 2 chunks +2 lines, -4 lines 0 comments Download
M src/core/SkPictureRecord.cpp View 1 2 2 chunks +20 lines, -46 lines 0 comments Download
M src/pipe/SkGPipeWrite.cpp View 1 2 3 chunks +29 lines, -45 lines 0 comments Download
M src/utils/SkDeferredCanvas.cpp View 1 chunk +0 lines, -24 lines 0 comments Download
M src/utils/SkDumpCanvas.cpp View 1 2 1 chunk +18 lines, -25 lines 0 comments Download
M src/utils/SkLuaCanvas.cpp View 1 2 1 chunk +20 lines, -28 lines 0 comments Download
M src/utils/SkNWayCanvas.cpp View 1 chunk +0 lines, -32 lines 0 comments Download
M src/utils/SkProxyCanvas.cpp View 1 chunk +0 lines, -20 lines 0 comments Download
M src/utils/debugger/SkDebugCanvas.h View 1 chunk +0 lines, -4 lines 0 comments Download
M src/utils/debugger/SkDebugCanvas.cpp View 1 2 3 chunks +14 lines, -21 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
f(malita)
First stab at reducing the number of matrix-related virtuals. Since we don't currently track rotation ...
6 years, 9 months ago (2014-03-18 14:51:42 UTC) #1
robertphillips
https://codereview.chromium.org/203203004/diff/1/src/core/SkPictureRecord.cpp File src/core/SkPictureRecord.cpp (right): https://codereview.chromium.org/203203004/diff/1/src/core/SkPictureRecord.cpp#newcode700 src/core/SkPictureRecord.cpp:700: break; Can we not check for the rotate special ...
6 years, 9 months ago (2014-03-18 14:59:38 UTC) #2
reed1
api lgtm once this sort of thing lands, I can't wait to add/change the "helpers" ...
6 years, 9 months ago (2014-03-18 15:13:16 UTC) #3
reed1
next CL -- DEATH TO SETMATRIX
6 years, 9 months ago (2014-03-18 15:13:47 UTC) #4
reed1
I had a different thought for SkCanvas.cpp -- what do you think of this pattern: ...
6 years, 9 months ago (2014-03-18 15:19:43 UTC) #5
f(malita)
On 2014/03/18 15:19:43, reed1 wrote: > I had a different thought for SkCanvas.cpp -- what ...
6 years, 9 months ago (2014-03-18 15:31:09 UTC) #6
reed1
On 2014/03/18 15:31:09, Florin Malita wrote: > On 2014/03/18 15:19:43, reed1 wrote: > > I ...
6 years, 9 months ago (2014-03-18 15:32:38 UTC) #7
f(malita)
https://codereview.chromium.org/203203004/diff/1/src/core/SkPictureRecord.cpp File src/core/SkPictureRecord.cpp (right): https://codereview.chromium.org/203203004/diff/1/src/core/SkPictureRecord.cpp#newcode700 src/core/SkPictureRecord.cpp:700: break; On 2014/03/18 14:59:38, robertphillips wrote: > Can we ...
6 years, 9 months ago (2014-03-21 16:17:46 UTC) #8
f(malita)
On 2014/03/21 16:17:46, Florin Malita wrote: > https://codereview.chromium.org/203203004/diff/1/src/core/SkPictureRecord.cpp > File src/core/SkPictureRecord.cpp (right): > > https://codereview.chromium.org/203203004/diff/1/src/core/SkPictureRecord.cpp#newcode700 ...
6 years, 9 months ago (2014-03-21 16:21:47 UTC) #9
f(malita)
On 2014/03/21 16:21:47, Florin Malita wrote: > On 2014/03/21 16:17:46, Florin Malita wrote: > > ...
6 years, 9 months ago (2014-03-24 20:05:03 UTC) #10
robertphillips
lgtm with nits https://codereview.chromium.org/203203004/diff/20001/src/core/SkPictureRecord.cpp File src/core/SkPictureRecord.cpp (right): https://codereview.chromium.org/203203004/diff/20001/src/core/SkPictureRecord.cpp#newcode694 src/core/SkPictureRecord.cpp:694: switch (matrix.getType()) { cases are supposed ...
6 years, 8 months ago (2014-03-25 15:44:35 UTC) #11
f(malita)
https://codereview.chromium.org/203203004/diff/20001/src/core/SkPictureRecord.cpp File src/core/SkPictureRecord.cpp (right): https://codereview.chromium.org/203203004/diff/20001/src/core/SkPictureRecord.cpp#newcode694 src/core/SkPictureRecord.cpp:694: switch (matrix.getType()) { On 2014/03/25 15:44:36, robertphillips wrote: > ...
6 years, 8 months ago (2014-03-25 15:58:07 UTC) #12
f(malita)
The CQ bit was checked by fmalita@chromium.org
6 years, 8 months ago (2014-03-25 15:58:12 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/fmalita@chromium.org/203203004/100001
6 years, 8 months ago (2014-03-25 15:58:22 UTC) #14
commit-bot: I haz the power
6 years, 8 months ago (2014-03-25 17:32:42 UTC) #15
Message was sent while issue was closed.
Change committed as 13940

Powered by Google App Engine
This is Rietveld 408576698