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

Issue 1360943003: simplify code in SkRecords.h (Closed)

Created:
5 years, 3 months ago by mtklein_C
Modified:
5 years, 2 months ago
Reviewers:
bungeman-skia, mtklein
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

simplify code in SkRecords.h - use C++11 features ({} init, move constructors) to eliminate the need for explicit constructors - collapse RECORD0...RECORD8 into just one RECORD macro - explicitly tag record types instead of using member detectors. Removing member detectors makes this code significantly less fragile. This exposes a few places where we didn't really think through what to do with SkDrawable. I've marked them TODO for now. BUG=skia: Committed: https://skia.googlesource.com/skia/+/449d9b7e2d1b2e20963f18639c6e541ef953f069

Patch Set 1 #

Patch Set 2 : undef RECORD #

Patch Set 3 : tags #

Patch Set 4 : fmt #

Patch Set 5 : replace member detectors #

Patch Set 6 : simplify #

Patch Set 7 : DrawAtlas has an atlas... #

Patch Set 8 : fix SaveLayer #

Patch Set 9 : !!? #

Patch Set 10 : another SaveLayer #

Unified diffs Side-by-side diffs Delta from patch set Stats (+245 lines, -290 lines) Patch
M dm/DMSrcSink.cpp View 1 2 3 4 3 chunks +8 lines, -9 lines 0 comments Download
M include/private/SkRecords.h View 1 2 3 4 5 6 6 chunks +186 lines, -206 lines 0 comments Download
M include/private/SkTLogic.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -30 lines 0 comments Download
M src/core/SkMiniRecorder.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkPictureCommon.h View 1 2 3 4 5 6 7 8 9 5 chunks +37 lines, -32 lines 0 comments Download
M src/core/SkRecord.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M src/core/SkRecordDraw.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkRecordPattern.h View 1 2 3 4 2 chunks +6 lines, -7 lines 0 comments Download
M src/core/SkRecorder.cpp View 1 chunk +1 line, -1 line 0 comments Download
M tests/RecordTest.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 18 (8 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1360943003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1360943003/140001
5 years, 2 months ago (2015-09-28 16:21:46 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Win-MSVC-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86_64-Debug-Trybot/builds/3498)
5 years, 2 months ago (2015-09-28 16:23:29 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1360943003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1360943003/160001
5 years, 2 months ago (2015-09-28 16:31:56 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-09-28 16:37:56 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1360943003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1360943003/180001
5 years, 2 months ago (2015-09-28 16:41:26 UTC) #10
mtklein_C
5 years, 2 months ago (2015-09-28 16:42:40 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-09-28 16:47:27 UTC) #14
bungeman-skia
lgtm
5 years, 2 months ago (2015-09-28 17:25:47 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1360943003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1360943003/180001
5 years, 2 months ago (2015-09-28 17:32:28 UTC) #17
commit-bot: I haz the power
5 years, 2 months ago (2015-09-28 17:33:05 UTC) #18
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://skia.googlesource.com/skia/+/449d9b7e2d1b2e20963f18639c6e541ef953f069

Powered by Google App Engine
This is Rietveld 408576698