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

Issue 594193002: [blink] Pass SkBitmap by reference in WebNinePatchLayer::setBitmap and refactor (Closed)

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

Description

[blink] Pass SkBitmap by reference in WebNinePatchLayer::setBitmap and refactor 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. This overhead, albeit minor, can be avoided by passing SkBitmap as reference. R=jamesr@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=182559

Patch Set 1 #

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

Messages

Total messages: 9 (2 generated)
vivekg
PTAL, thank you! Chromium side changes here: https://codereview.chromium.org/597553002
6 years, 3 months ago (2014-09-23 14:48:19 UTC) #1
jamesr
lgtm
6 years, 3 months ago (2014-09-23 23:34:00 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/594193002/1
6 years, 3 months ago (2014-09-24 04:59:40 UTC) #4
commit-bot: I haz the power
Committed patchset #1 (id:1) as 182559
6 years, 3 months ago (2014-09-24 06:07:04 UTC) #5
Nico
fwiw, it looks like all the ninepatch stuff in blink is dead code; I just ...
5 years, 5 months ago (2015-07-23 20:07:32 UTC) #7
danakj
On 2015/07/23 20:07:32, Nico (hiding) wrote: > fwiw, it looks like all the ninepatch stuff ...
5 years, 5 months ago (2015-07-23 20:14:53 UTC) #8
Nico
5 years, 5 months ago (2015-07-23 20:25:51 UTC) #9
Message was sent while issue was closed.
Ah, I see. If it's revived, maybe it could use the other existing ninepatch
layer :-)

On Thu, Jul 23, 2015 at 1:14 PM, <danakj@chromium.org> wrote:

> On 2015/07/23 20:07:32, Nico (hiding) wrote:
>
>> fwiw, it looks like all the ninepatch stuff in blink is dead code; I just
>> deleted it (https://codereview.chromium.org/1248413003). Was this not
>> the case
>> when this CL was written?
>>
>
> Nine patch layer was added to enable overlay scrollbars in aura that aren't
> solid color. But the project lost traction and didn't complete (yet?). So
> it
> remained dead.
>
> https://codereview.chromium.org/594193002/
>

To unsubscribe from this group and stop receiving emails from it, send an email
to blink-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698