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

Issue 583743002: [chromium] Pass SkBitmap by reference in WebImageLayer::setBitmap (Closed)

Created:
6 years, 3 months ago by vivekg_samsung
Modified:
6 years, 3 months ago
CC:
cc-bugs_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[chromium] Pass SkBitmap by reference in WebImageLayer::setBitmap Although passing SkBitmap by value doesn't copy the underlying pixels, it indeed involves memcpy (~64 bytes to be precise) to replicate the settings from the other bitmap in the copy constructor. Along with this, it has to do some book keeping with respect to reference counts, updating pixel lock count etc. This overhead, albeit minor, can be avoided by passing SkBitmap as reference. R=abarth@chromium.org, jamesr@chromium.org Committed: https://crrev.com/9461415e61c4995ca4606c9a51ac33d24ebba908 Cr-Commit-Position: refs/heads/master@{#296143}

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : Removed inline virtual function! #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -0 lines) Patch
M cc/blink/web_image_layer_impl.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M cc/blink/web_image_layer_impl.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
vivekg
PTAL, thank you!
6 years, 3 months ago (2014-09-18 19:08:07 UTC) #1
danakj
LGTM % blink-side approval https://codereview.chromium.org/583743002/diff/1/cc/blink/web_image_layer_impl.h File cc/blink/web_image_layer_impl.h (right): https://codereview.chromium.org/583743002/diff/1/cc/blink/web_image_layer_impl.h#newcode24 cc/blink/web_image_layer_impl.h:24: virtual void setImageBitmap(const SkBitmap&); can ...
6 years, 3 months ago (2014-09-18 21:43:53 UTC) #3
vivekg
On 2014/09/18 at 21:43:53, danakj wrote: > LGTM % blink-side approval > > https://codereview.chromium.org/583743002/diff/1/cc/blink/web_image_layer_impl.h > ...
6 years, 3 months ago (2014-09-19 03:13:43 UTC) #4
vivekg
@jamesr, done the changes as per our discussion. PTAL. Thank you.
6 years, 3 months ago (2014-09-22 15:05:47 UTC) #5
jamesr
lgtm
6 years, 3 months ago (2014-09-22 17:27:02 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/583743002/60001
6 years, 3 months ago (2014-09-23 00:57:06 UTC) #8
commit-bot: I haz the power
Exceeded time limit waiting for builds to trigger.
6 years, 3 months ago (2014-09-23 02:57:56 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/583743002/60001
6 years, 3 months ago (2014-09-23 04:31:04 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001) as d09c6f7633a831c09757f69c4ec8c39ae4a56681
6 years, 3 months ago (2014-09-23 05:04:15 UTC) #13
commit-bot: I haz the power
6 years, 3 months ago (2014-09-23 05:04:51 UTC) #14
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/9461415e61c4995ca4606c9a51ac33d24ebba908
Cr-Commit-Position: refs/heads/master@{#296143}

Powered by Google App Engine
This is Rietveld 408576698