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

Issue 200223008: Remove SkCanvas matrix ops return value. (Closed)

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

Description

Remove SkCanvas matrix ops return value. The internal SkMatrix ops can no longer fail -> we can remove the bool return value. R=reed@google.com,robertphillips@google.com,bsalomon@google.com,scroggo@google.com Committed: http://code.google.com/p/skia/source/detail?r=13849

Patch Set 1 #

Patch Set 2 : Self-review fixes #

Total comments: 2

Patch Set 3 : Updated per comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -220 lines) Patch
M include/core/SkCanvas.h View 1 2 1 chunk +5 lines, -10 lines 0 comments Download
M include/core/SkMatrix.h View 1 2 chunks +20 lines, -20 lines 0 comments Download
M src/core/SkCanvas.cpp View 1 2 1 chunk +10 lines, -15 lines 0 comments Download
M src/core/SkDraw.cpp View 3 chunks +4 lines, -8 lines 0 comments Download
M src/core/SkMatrix.cpp View 1 2 10 chunks +100 lines, -126 lines 2 comments Download
M src/core/SkMatrixClipStateMgr.h View 2 chunks +20 lines, -20 lines 0 comments Download
M src/device/xps/SkXPSDevice.cpp View 1 chunk +1 line, -3 lines 0 comments Download
M src/effects/gradients/SkGradientShader.cpp View 1 chunk +1 line, -6 lines 0 comments Download
M src/pdf/SkPDFDevice.cpp View 1 chunk +1 line, -4 lines 0 comments Download
M tests/CanvasTest.cpp View 1 chunk +5 lines, -8 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
f(malita)
Chromium requires one GraphicsContext internal API tweak. Android is a big unknown.
6 years, 9 months ago (2014-03-14 16:09:01 UTC) #1
reed1
lgtm
6 years, 9 months ago (2014-03-14 17:11:07 UTC) #2
robertphillips
https://codereview.chromium.org/200223008/diff/20001/src/core/SkMatrix.cpp File src/core/SkMatrix.cpp (right): https://codereview.chromium.org/200223008/diff/20001/src/core/SkMatrix.cpp#newcode325 src/core/SkMatrix.cpp:325: void SkMatrix::preScale(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py) ...
6 years, 9 months ago (2014-03-14 17:35:18 UTC) #3
fmalita_google_do_not_use
https://codereview.chromium.org/200223008/diff/20001/src/core/SkMatrix.cpp File src/core/SkMatrix.cpp (right): https://codereview.chromium.org/200223008/diff/20001/src/core/SkMatrix.cpp#newcode325 src/core/SkMatrix.cpp:325: void SkMatrix::preScale(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py) ...
6 years, 9 months ago (2014-03-14 17:39:13 UTC) #4
f(malita)
Chromium usage updated (https://src.chromium.org/viewvc/blink?revision=169305&view=revision), this should be good to go assuming Android doesn't depend on ...
6 years, 9 months ago (2014-03-17 13:43:33 UTC) #5
scroggo
On 2014/03/17 13:43:33, Florin Malita wrote: > Chromium usage updated > (https://src.chromium.org/viewvc/blink?revision=169305&view=revision), this > should ...
6 years, 9 months ago (2014-03-17 14:51:52 UTC) #6
f(malita)
The CQ bit was checked by fmalita@chromium.org
6 years, 9 months ago (2014-03-18 12:45:38 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/fmalita@chromium.org/200223008/40001
6 years, 9 months ago (2014-03-18 12:45:46 UTC) #8
f(malita)
The CQ bit was unchecked by fmalita@chromium.org
6 years, 9 months ago (2014-03-18 12:45:56 UTC) #9
f(malita)
The CQ bit was checked by fmalita@chromium.org
6 years, 9 months ago (2014-03-18 12:46:23 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/fmalita@chromium.org/200223008/40001
6 years, 9 months ago (2014-03-18 12:46:32 UTC) #11
commit-bot: I haz the power
Change committed as 13849
6 years, 9 months ago (2014-03-18 12:51:55 UTC) #12
scroggo
6 years, 8 months ago (2014-04-02 14:53:36 UTC) #13
Message was sent while issue was closed.
https://codereview.chromium.org/200223008/diff/40001/src/core/SkMatrix.cpp
File src/core/SkMatrix.cpp (right):

https://codereview.chromium.org/200223008/diff/40001/src/core/SkMatrix.cpp#ne...
src/core/SkMatrix.cpp:596: return SkDoubleToFloat((double)a * b + (double)c *
d);
I know this is not a change in behavior, but is there a reason we decided not to
consider the possibility that these computations might overflow float?

https://codereview.chromium.org/200223008/diff/40001/src/core/SkMatrix.cpp#ne...
src/core/SkMatrix.cpp:600: return row[0] * col[0] + row[1] * col[3] + row[2] *
col[6];
Same question.

Powered by Google App Engine
This is Rietveld 408576698