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

Issue 583733002: [blink] Pass SkBitmap by reference in WebImageLayer::setBitmap (Closed)

Created:
6 years, 3 months ago by vivekg_samsung
Modified:
6 years, 3 months ago
CC:
abarth-chromium, blink-layers+watch_chromium.org, blink-reviews, Rik, danakj, dglazkov+blink, krit, jbroman, mkwst+moarreviews_chromium.org, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

[blink] 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, eseidel@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=182486

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Added a FIXME! #

Patch Set 3 : Simplified blink side! #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M Source/platform/graphics/GraphicsLayer.cpp View 1 chunk +1 line, -1 line 0 comments Download
M public/platform/WebImageLayer.h View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 16 (4 generated)
vivekg
PTAL, thanks!
6 years, 3 months ago (2014-09-18 19:09:46 UTC) #2
vivekg
On 2014/09/18 19:09:46, vivekg_ wrote: > PTAL, thanks! @abarth any comments?
6 years, 3 months ago (2014-09-19 16:40:52 UTC) #3
jamesr
Concept fine, execution needs a bit of tweaking. Have a non-pure-virtual function here that does ...
6 years, 3 months ago (2014-09-22 14:25:44 UTC) #5
vivekg
https://codereview.chromium.org/583733002/diff/20001/public/platform/WebImageLayer.h File public/platform/WebImageLayer.h (right): https://codereview.chromium.org/583733002/diff/20001/public/platform/WebImageLayer.h#newcode40 public/platform/WebImageLayer.h:40: virtual void setBitmap(SkBitmap) { } On 2014/09/22 at 14:25:44, ...
6 years, 3 months ago (2014-09-22 14:29:28 UTC) #7
jamesr
On 2014/09/22 14:29:28, vivekg_ wrote: > We have to land this first in blink in ...
6 years, 3 months ago (2014-09-22 14:45:00 UTC) #8
vivekg
On 2014/09/22 at 14:45:00, jamesr wrote: > On 2014/09/22 14:29:28, vivekg_ wrote: > > We ...
6 years, 3 months ago (2014-09-22 14:52:50 UTC) #9
jamesr
That seems good.
6 years, 3 months ago (2014-09-22 14:55:40 UTC) #10
vivekg
On 2014/09/22 at 14:55:40, jamesr wrote: > That seems good. Thank you. Done the changes, ...
6 years, 3 months ago (2014-09-22 15:11:57 UTC) #11
jamesr
lgtm, but I'm pretty sure you will need to leave the old function around as ...
6 years, 3 months ago (2014-09-22 17:17:39 UTC) #12
vivekg
On 2014/09/22 at 17:17:39, jamesr wrote: > lgtm, but I'm pretty sure you will need ...
6 years, 3 months ago (2014-09-23 02:26:36 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/583733002/60001
6 years, 3 months ago (2014-09-23 10:44:07 UTC) #15
commit-bot: I haz the power
6 years, 3 months ago (2014-09-23 11:02:47 UTC) #16
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as 182486

Powered by Google App Engine
This is Rietveld 408576698