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

Issue 248053008: Proof of adoption in SkRecord::replace. (Closed)

Created:
6 years, 8 months ago by mtklein_C
Modified:
6 years, 8 months ago
Reviewers:
f(malita), mtklein
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlesource.com/skia.git@master
Visibility:
Public.

Description

Proof of adoption in SkRecord::replace. It used to be an unenforced requirement that callers take ownership of the command which was replaced when calling SkRecord::replace. Now we can enforce it, by splitting replace into two modes: - T* replace(i): always destroys the existing command for you - T* replace(i, proofOfAdoption): proofOfAdoption is checked to make sure the caller has adopted the existing command before replacing it. BUG=skia:2378 Committed: http://code.google.com/p/skia/source/detail?r=14352

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -29 lines) Patch
M src/record/SkRecord.h View 4 chunks +27 lines, -10 lines 0 comments Download
M src/record/SkRecordOpts.cpp View 6 chunks +13 lines, -17 lines 0 comments Download
M src/record/SkRecords.h View 2 chunks +8 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
mtklein
6 years, 8 months ago (2014-04-23 19:01:12 UTC) #1
f(malita)
lgtm
6 years, 8 months ago (2014-04-24 12:45:39 UTC) #2
mtklein
lgtm
6 years, 8 months ago (2014-04-24 13:47:26 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/mtklein@chromium.org/248053008/1
6 years, 8 months ago (2014-04-24 13:47:41 UTC) #4
commit-bot: I haz the power
6 years, 8 months ago (2014-04-24 15:33:50 UTC) #5
Message was sent while issue was closed.
Change committed as 14352

Powered by Google App Engine
This is Rietveld 408576698