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

Issue 303263011: Compile-time initialize special SkMatrices. (Closed)

Created:
6 years, 6 months ago by mtklein_C
Modified:
6 years, 6 months ago
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlesource.com/skia.git@master
Visibility:
Public.

Description

Compile-time initialize special SkMatrices. BUG=skia: Committed: https://skia.googlesource.com/skia/+/ada3635c8e83739f45cd52459d3e052783d1a40e

Patch Set 1 #

Patch Set 2 : nit #

Total comments: 1

Patch Set 3 : add offsetof asserts #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -18 lines) Patch
M src/core/SkMatrix.cpp View 1 2 2 chunks +26 lines, -18 lines 3 comments Download

Messages

Total messages: 9 (0 generated)
mtklein
6 years, 6 months ago (2014-06-02 16:09:22 UTC) #1
bungeman-skia
https://codereview.chromium.org/303263011/diff/20001/src/core/SkMatrix.cpp File src/core/SkMatrix.cpp (right): https://codereview.chromium.org/303263011/diff/20001/src/core/SkMatrix.cpp#newcode1568 src/core/SkMatrix.cpp:1568: SK_COMPILE_ASSERT(sizeof(PODMatrix) == sizeof(SkMatrix), PODMatrixSizeMismatch); In addition to this, it ...
6 years, 6 months ago (2014-06-02 16:35:15 UTC) #2
mtklein
On 2014/06/02 16:35:15, bungeman1 wrote: > https://codereview.chromium.org/303263011/diff/20001/src/core/SkMatrix.cpp > File src/core/SkMatrix.cpp (right): > > https://codereview.chromium.org/303263011/diff/20001/src/core/SkMatrix.cpp#newcode1568 > ...
6 years, 6 months ago (2014-06-02 17:31:47 UTC) #3
bungeman-skia
I shall go out on a limb and say lgtm. https://codereview.chromium.org/303263011/diff/40001/src/core/SkMatrix.cpp File src/core/SkMatrix.cpp (right): https://codereview.chromium.org/303263011/diff/40001/src/core/SkMatrix.cpp#newcode1568 ...
6 years, 6 months ago (2014-06-02 17:46:31 UTC) #4
mtklein
The CQ bit was checked by mtklein@google.com
6 years, 6 months ago (2014-06-02 17:54:56 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/mtklein@chromium.org/303263011/40001
6 years, 6 months ago (2014-06-02 17:55:24 UTC) #6
commit-bot: I haz the power
Change committed as ada3635c8e83739f45cd52459d3e052783d1a40e
6 years, 6 months ago (2014-06-02 17:59:39 UTC) #7
reed1
https://codereview.chromium.org/303263011/diff/40001/src/core/SkMatrix.cpp File src/core/SkMatrix.cpp (right): https://codereview.chromium.org/303263011/diff/40001/src/core/SkMatrix.cpp#newcode12 src/core/SkMatrix.cpp:12: #include <stddef.h> is this not already included (directly/indirectly) by ...
6 years, 6 months ago (2014-06-02 18:39:50 UTC) #8
mtklein
6 years, 6 months ago (2014-06-02 18:40:31 UTC) #9
Message was sent while issue was closed.
https://codereview.chromium.org/303263011/diff/40001/src/core/SkMatrix.cpp
File src/core/SkMatrix.cpp (right):

https://codereview.chromium.org/303263011/diff/40001/src/core/SkMatrix.cpp#ne...
src/core/SkMatrix.cpp:12: #include <stddef.h>
On 2014/06/02 18:39:50, reed1 wrote:
> is this not already included (directly/indirectly) by SkTypes.h?

Nope.  offsetof wasn't defined until I included this.

Powered by Google App Engine
This is Rietveld 408576698