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

Issue 258693006: Start using type traits in src/record instead of macros. (Closed)

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

Description

Start using type traits in src/record instead of macros. Simplified skip logic by always running clip commands. No performance difference on bot or silk SKPs. BUG=skia:2378 Committed: http://code.google.com/p/skia/source/detail?r=14410

Patch Set 1 #

Patch Set 2 : simplify skip #

Patch Set 3 : everyone inside #

Patch Set 4 : update test #

Total comments: 14

Patch Set 5 : ben #

Unified diffs Side-by-side diffs Delta from patch set Stats (+201 lines, -183 lines) Patch
M gyp/record.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M src/record/SkRecordDraw.cpp View 1 2 3 4 3 chunks +38 lines, -63 lines 0 comments Download
M src/record/SkRecordOpts.cpp View 1 2 3 4 6 chunks +97 lines, -116 lines 0 comments Download
A src/record/SkRecordTraits.h View 1 1 chunk +31 lines, -0 lines 0 comments Download
M src/utils/SkTLogic.h View 1 2 3 4 1 chunk +31 lines, -0 lines 0 comments Download
M tests/RecordDrawTest.cpp View 1 2 3 2 chunks +3 lines, -4 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
mtklein
Ben, can you look at SkTLogic, and Florin, at the rest?
6 years, 8 months ago (2014-04-25 19:10:59 UTC) #1
bungeman-skia
https://codereview.chromium.org/258693006/diff/60001/src/utils/SkTLogic.h File src/utils/SkTLogic.h (right): https://codereview.chromium.org/258693006/diff/60001/src/utils/SkTLogic.h#newcode61 src/utils/SkTLogic.h:61: /** SkTEnableIf is a pre-C++11 std::enable_if. */ The first ...
6 years, 8 months ago (2014-04-25 21:45:55 UTC) #2
f(malita)
rest lgtm + ramblings https://codereview.chromium.org/258693006/diff/60001/src/record/SkRecordDraw.cpp File src/record/SkRecordDraw.cpp (right): https://codereview.chromium.org/258693006/diff/60001/src/record/SkRecordDraw.cpp#newcode63 src/record/SkRecordDraw.cpp:63: void updateClip(SK_ENABLE_IF(ChangesClip<T>)) { fClipEmpty = ...
6 years, 7 months ago (2014-04-28 14:20:44 UTC) #3
mtklein
all done. ptal! https://codereview.chromium.org/258693006/diff/60001/src/record/SkRecordDraw.cpp File src/record/SkRecordDraw.cpp (right): https://codereview.chromium.org/258693006/diff/60001/src/record/SkRecordDraw.cpp#newcode63 src/record/SkRecordDraw.cpp:63: void updateClip(SK_ENABLE_IF(ChangesClip<T>)) { fClipEmpty = fCanvas->isClipEmpty(); ...
6 years, 7 months ago (2014-04-28 15:47:04 UTC) #4
bungeman-skia
Logic stuff lgtm.
6 years, 7 months ago (2014-04-28 16:10:34 UTC) #5
mtklein
The CQ bit was checked by mtklein@google.com
6 years, 7 months ago (2014-04-28 16:13:26 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/mtklein@chromium.org/258693006/80001
6 years, 7 months ago (2014-04-28 16:13:44 UTC) #7
commit-bot: I haz the power
6 years, 7 months ago (2014-04-28 16:19:52 UTC) #8
Message was sent while issue was closed.
Change committed as 14410

Powered by Google App Engine
This is Rietveld 408576698