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

Issue 1382883002: Fixing performance issue of creating imagebitmap from ImageData (Closed)

Created:
5 years, 2 months ago by xidachen
Modified:
4 years, 11 months ago
CC:
blink-reviews, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, danakj, dshwang, drott+blinkwatch_chromium.org, krit, f(malita), jbroman, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixing performance issue of creating imagebitmap from ImageData. BUG=538253 Committed: https://crrev.com/1db4c96ec3d12c0a121325d1b6e63ecd4bbf0ed8 Cr-Commit-Position: refs/heads/master@{#354060}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add a performance test benchmark, delete the new class and make changes to the existing class #

Patch Set 3 : remove the benchmark test which has been landed already #

Total comments: 2

Patch Set 4 : Change enum type name and remove temps #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -8 lines) Patch
M third_party/WebKit/Source/core/frame/ImageBitmap.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsTypes.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImageBuffer.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/UnacceleratedImageBufferSurface.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/UnacceleratedImageBufferSurface.cpp View 1 2 3 2 chunks +5 lines, -3 lines 2 comments Download

Messages

Total messages: 21 (5 generated)
xidachen
Hi Justin, Please review this CL. Thanks.
5 years, 2 months ago (2015-10-01 15:42:12 UTC) #2
chrishtr
Please do create a bug, and mark it as blocking your image bitmap tracking bug. ...
5 years, 2 months ago (2015-10-01 17:04:49 UTC) #4
Justin Novosad
Is this performance improvement captured by an existing test? I think it is not. I ...
5 years, 2 months ago (2015-10-03 03:22:55 UTC) #5
xidachen
Fix the issues according to Justin's comments. 1. Add a benchmark test. To run the ...
5 years, 2 months ago (2015-10-05 14:21:34 UTC) #6
xidachen
Fix the issues according to Justin's comments. 1. Add a benchmark test. To run the ...
5 years, 2 months ago (2015-10-05 14:21:34 UTC) #7
Justin Novosad
Could you submit the benchmark in a separate change, which we will land first. That ...
5 years, 2 months ago (2015-10-05 19:22:05 UTC) #8
xidachen
Hi Justin, The benchmark test has been landed in this CL: https://codereview.chromium.org/1387933002/ This CL is ...
5 years, 2 months ago (2015-10-14 12:35:50 UTC) #9
Justin Novosad
https://codereview.chromium.org/1382883002/diff/40001/third_party/WebKit/Source/core/frame/ImageBitmap.cpp File third_party/WebKit/Source/core/frame/ImageBitmap.cpp (right): https://codereview.chromium.org/1382883002/diff/40001/third_party/WebKit/Source/core/frame/ImageBitmap.cpp#newcode102 third_party/WebKit/Source/core/frame/ImageBitmap.cpp:102: ImageBitmapSourceType sourceType = FromImageData; No need to use temporaries ...
5 years, 2 months ago (2015-10-14 14:25:28 UTC) #10
xidachen
Hi Justin, Really great comments, thank you. I have changed the enum type name and ...
5 years, 2 months ago (2015-10-14 15:23:46 UTC) #11
xidachen
Hi Justin, Really great comments, thank you. I have changed the enum type name and ...
5 years, 2 months ago (2015-10-14 15:24:16 UTC) #12
Justin Novosad
lgtm
5 years, 2 months ago (2015-10-14 15:40:37 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1382883002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1382883002/60001
5 years, 2 months ago (2015-10-14 17:02:36 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 2 months ago (2015-10-14 18:05:15 UTC) #16
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/1db4c96ec3d12c0a121325d1b6e63ecd4bbf0ed8 Cr-Commit-Position: refs/heads/master@{#354060}
5 years, 2 months ago (2015-10-14 18:06:02 UTC) #17
rickyz (no longer on Chrome)
https://codereview.chromium.org/1382883002/diff/60001/third_party/WebKit/Source/platform/graphics/UnacceleratedImageBufferSurface.cpp File third_party/WebKit/Source/platform/graphics/UnacceleratedImageBufferSurface.cpp (right): https://codereview.chromium.org/1382883002/diff/60001/third_party/WebKit/Source/platform/graphics/UnacceleratedImageBufferSurface.cpp#newcode49 third_party/WebKit/Source/platform/graphics/UnacceleratedImageBufferSurface.cpp:49: if (initializationMode == DoNotInitializeImagePixels) { Is this logic correct? ...
4 years, 11 months ago (2016-01-19 23:34:49 UTC) #20
rickyz (no longer on Chrome)
4 years, 11 months ago (2016-01-19 23:43:10 UTC) #21
Message was sent while issue was closed.
https://codereview.chromium.org/1382883002/diff/60001/third_party/WebKit/Sour...
File
third_party/WebKit/Source/platform/graphics/UnacceleratedImageBufferSurface.cpp
(right):

https://codereview.chromium.org/1382883002/diff/60001/third_party/WebKit/Sour...
third_party/WebKit/Source/platform/graphics/UnacceleratedImageBufferSurface.cpp:49:
if (initializationMode == DoNotInitializeImagePixels) {
On 2016/01/19 at 23:34:49, rickyz wrote:
> Is this logic correct? Shouldn't this clear initializationMode ==
InitializeImagePixels?
> 
> On the other hand, ClusterFuzz said that this CL fixed the issue, so maybe I'm
just seeing things?

Never mind, I see that this was fixed in a later CL
(https://codereview.chromium.org/1407393002).

Powered by Google App Engine
This is Rietveld 408576698