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

Issue 1514503004: SkBitmap move (Closed)

Created:
5 years ago by hal.canary
Modified:
5 years ago
Reviewers:
mtklein, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

SkBitmap move Running `Release/dm --gpu 0`, the number of times we call SkBitmap::operator=(const SkBitmap&) (which refs the pixelref) is reduced from ~214929 to ~214626. Committed: https://skia.googlesource.com/skia/+/023bda0d836834eb1f98ceec15b169a492ab78ad

Patch Set 1 #

Patch Set 2 : 2015-12-10 (Thursday) 17:55:13 EST #

Total comments: 2

Patch Set 3 : 2015-12-14 (Monday) 11:11:10 EST #

Patch Set 4 : 2015-12-14 (Monday) 12:27:36 EST #

Total comments: 2

Patch Set 5 : reed@ style nit #

Patch Set 6 : 2015-12-14 (Monday) 12:58:31 EST #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -2 lines) Patch
M include/core/SkBitmap.h View 1 2 3 4 5 1 chunk +14 lines, -2 lines 0 comments Download
M src/core/SkBitmap.cpp View 1 2 3 4 2 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (12 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/1514503004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1514503004/20001
5 years ago (2015-12-10 22:56:10 UTC) #2
hal.canary
ptal
5 years ago (2015-12-10 22:56:13 UTC) #4
mtklein
I don't have any objection to making SkBitmap moveable per se. I'm skeptical of using ...
5 years ago (2015-12-10 23:09:58 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-10 23:13:54 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1514503004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1514503004/40001
5 years ago (2015-12-14 17:10:18 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1514503004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1514503004/60001
5 years ago (2015-12-14 17:28:34 UTC) #12
hal.canary
On 2015/12/10 at 23:09:58, mtklein wrote: > I'm skeptical of using std::move anywhere it's not ...
5 years ago (2015-12-14 17:30:30 UTC) #13
hal.canary
https://codereview.chromium.org/1514503004/diff/20001/src/core/SkBitmap.cpp File src/core/SkBitmap.cpp (right): https://codereview.chromium.org/1514503004/diff/20001/src/core/SkBitmap.cpp#newcode44 src/core/SkBitmap.cpp:44: memcpy(this, &other, sizeof(other)); On 2015/12/10 at 23:09:58, mtklein wrote: ...
5 years ago (2015-12-14 17:30:37 UTC) #14
reed1
https://codereview.chromium.org/1514503004/diff/60001/include/core/SkBitmap.h File include/core/SkBitmap.h (right): https://codereview.chromium.org/1514503004/diff/60001/include/core/SkBitmap.h#newcode69 include/core/SkBitmap.h:69: SkBitmap(SkBitmap&&); style nit: move these closer to their counterparts ...
5 years ago (2015-12-14 17:42:42 UTC) #16
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-14 17:46:44 UTC) #18
mtklein
lgtm
5 years ago (2015-12-14 17:51:12 UTC) #19
hal.canary
https://codereview.chromium.org/1514503004/diff/60001/include/core/SkBitmap.h File include/core/SkBitmap.h (right): https://codereview.chromium.org/1514503004/diff/60001/include/core/SkBitmap.h#newcode69 include/core/SkBitmap.h:69: SkBitmap(SkBitmap&&); On 2015/12/14 at 17:42:42, reed1 wrote: > style ...
5 years ago (2015-12-14 17:55:25 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1514503004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1514503004/80001
5 years ago (2015-12-14 17:55:32 UTC) #22
reed1
lgtm
5 years ago (2015-12-14 17:57:36 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1514503004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1514503004/100001
5 years ago (2015-12-14 17:59:02 UTC) #26
commit-bot: I haz the power
5 years ago (2015-12-14 18:19:20 UTC) #28
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://skia.googlesource.com/skia/+/023bda0d836834eb1f98ceec15b169a492ab78ad

Powered by Google App Engine
This is Rietveld 408576698