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

Issue 141483004: Optimization for image decoding using Skia discardable memory (Closed)

Created:
6 years, 11 months ago by Alpha Left Google
Modified:
6 years, 10 months ago
Reviewers:
Stephen White, reed1
CC:
blink-reviews, jamesr, krit, dsinclair, jbroman, danakj, Rik, Stephen Chennney, pdr., rwlbuis, reed1
Visibility:
Public.

Description

Optimization for image decoding using Skia discardable memory In the new Skia discardable memory path. We used to use heap memory to decode. And then copy into the discardable memory allocated by Skia. There's an opportunity for optimization. If we know that all data has been received and the image is not a multi frame image. We can decode directly into the memory given by Skia. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=166887

Patch Set 1 : fix compile #

Patch Set 2 : merged #

Patch Set 3 : fixed layout tests #

Patch Set 4 : fixed webkit_unit_tests on debug #

Total comments: 1

Patch Set 5 : merged #

Patch Set 6 : SkBitmap::installPixels #

Total comments: 1

Patch Set 7 : return false #

Total comments: 1

Patch Set 8 : done #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -24 lines) Patch
M Source/platform/graphics/ImageFrameGenerator.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -3 lines 0 comments Download
M Source/platform/graphics/ImageFrameGenerator.cpp View 1 2 3 4 5 6 7 6 chunks +85 lines, -19 lines 0 comments Download
M Source/platform/graphics/ImageFrameGeneratorTest.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/platform/graphics/ThreadSafeDataTransport.cpp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Alpha Left Google
6 years, 11 months ago (2014-01-21 07:14:22 UTC) #1
Alpha Left Google
This patch is merged now and is good for review.
6 years, 11 months ago (2014-01-23 00:18:45 UTC) #2
Alpha Left Google
uhoh not ready. test failures..
6 years, 11 months ago (2014-01-23 01:22:46 UTC) #3
Alpha Left Google
Please review. This is ready now.
6 years, 11 months ago (2014-01-24 01:57:12 UTC) #4
Stephen White
I'm not sure I understand what you mean by "the memory given by skia" in ...
6 years, 11 months ago (2014-01-25 18:33:55 UTC) #5
Alpha Left Google
On 2014/01/25 18:33:55, Stephen White wrote: > I'm not sure I understand what you mean ...
6 years, 10 months ago (2014-02-10 20:50:58 UTC) #6
Stephen White
On 2014/02/10 20:50:58, Alpha wrote: > On 2014/01/25 18:33:55, Stephen White wrote: > > I'm ...
6 years, 10 months ago (2014-02-10 21:18:51 UTC) #7
Alpha Left Google
On 2014/02/10 21:18:51, Stephen White wrote: > On 2014/02/10 20:50:58, Alpha wrote: > > On ...
6 years, 10 months ago (2014-02-10 21:22:50 UTC) #8
reed1
SkBitmap::installPixels(const SkImageInfo& info, void* pixels, size_t rb, void (*releaseProc)(void* addr, void* context), void* context) Can ...
6 years, 10 months ago (2014-02-10 21:25:16 UTC) #9
Alpha Left Google
On 2014/02/10 21:22:50, Alpha wrote: > On 2014/02/10 21:18:51, Stephen White wrote: > > On ...
6 years, 10 months ago (2014-02-10 21:26:35 UTC) #10
Alpha Left Google
On 2014/02/10 21:22:50, Alpha wrote: > On 2014/02/10 21:18:51, Stephen White wrote: > > On ...
6 years, 10 months ago (2014-02-10 21:26:36 UTC) #11
Stephen White
On 2014/02/10 21:26:36, Alpha wrote: > On 2014/02/10 21:22:50, Alpha wrote: > > On 2014/02/10 ...
6 years, 10 months ago (2014-02-10 21:28:04 UTC) #12
Alpha Left Google
I've changed the code to use SkBitmap::installPixels. The use of allocator remains.
6 years, 10 months ago (2014-02-10 21:45:01 UTC) #13
reed1
sgtm https://codereview.chromium.org/141483004/diff/380001/Source/platform/graphics/ImageFrameGenerator.cpp File Source/platform/graphics/ImageFrameGenerator.cpp (right): https://codereview.chromium.org/141483004/diff/380001/Source/platform/graphics/ImageFrameGenerator.cpp#newcode62 Source/platform/graphics/ImageFrameGenerator.cpp:62: dst->installPixels(m_info, m_pixels, m_rowBytes, 0, 0); return false if ...
6 years, 10 months ago (2014-02-10 21:51:01 UTC) #14
Alpha Left Google
On 2014/02/10 21:51:01, reed1 wrote: > sgtm > > https://codereview.chromium.org/141483004/diff/380001/Source/platform/graphics/ImageFrameGenerator.cpp > File Source/platform/graphics/ImageFrameGenerator.cpp (right): > ...
6 years, 10 months ago (2014-02-10 21:53:24 UTC) #15
Stephen White
Naming nit up to you, but it's possible others might be confused by the naming. ...
6 years, 10 months ago (2014-02-10 21:58:02 UTC) #16
Alpha Left Google
On 2014/02/10 21:58:02, Stephen White wrote: > Naming nit up to you, but it's possible ...
6 years, 10 months ago (2014-02-10 23:57:33 UTC) #17
Alpha Left Google
The CQ bit was checked by hclam@chromium.org
6 years, 10 months ago (2014-02-10 23:57:38 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hclam@chromium.org/141483004/480001
6 years, 10 months ago (2014-02-10 23:57:51 UTC) #19
commit-bot: I haz the power
6 years, 10 months ago (2014-02-11 02:19:03 UTC) #20
Message was sent while issue was closed.
Change committed as 166887

Powered by Google App Engine
This is Rietveld 408576698