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

Issue 1634763002: Multithreaded dng host implementation (Closed)

Created:
4 years, 11 months ago by ebrauer
Modified:
4 years, 11 months ago
CC:
reviews_skia.org, adaubert, yujieqin
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

It derives the dng_host and overrides PerformAreaTask() to split the task into several sub-tasks which get added to SkTaskGroup. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1634763002 Committed: https://skia.googlesource.com/skia/+/b84b5b42c1d848aa2b87216b9bda2b8c9e5781c1

Patch Set 1 #

Patch Set 2 : Fixes the tile organization. #

Total comments: 10

Patch Set 3 : Uses lambda instead of bind now. #

Patch Set 4 : Simplifies the thread area calculation. #

Total comments: 2

Patch Set 5 : Addressed comment from adaubert. #

Total comments: 23

Patch Set 6 : Addressed a couple of comments. #

Patch Set 7 : Differentiates between internal sub-tasks and threads. #

Patch Set 8 : Synced with internal code. #

Patch Set 9 : Resolves comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -1 line) Patch
M src/codec/SkRawCodec.cpp View 1 2 3 4 5 6 7 8 3 chunks +93 lines, -1 line 0 comments Download

Messages

Total messages: 30 (9 generated)
ebrauer
PTAL
4 years, 11 months ago (2016-01-25 18:50:00 UTC) #4
ebrauer
PTAL. As far as I can see with dm it is working now.
4 years, 11 months ago (2016-01-25 19:39:13 UTC) #6
mtklein
Are you sure this is a situation that's best handled by multithreading, as opposed to ...
4 years, 11 months ago (2016-01-25 19:50:59 UTC) #8
ebrauer
On 2016/01/25 19:50:59, mtklein wrote: > Are you sure this is a situation that's best ...
4 years, 11 months ago (2016-01-25 20:15:43 UTC) #9
mtklein
https://codereview.chromium.org/1634763002/diff/20001/src/codec/SkRawCodec.cpp File src/codec/SkRawCodec.cpp (right): https://codereview.chromium.org/1634763002/diff/20001/src/codec/SkRawCodec.cpp#newcode89 src/codec/SkRawCodec.cpp:89: threadPool.add(func); Something like, threadPool.add([&task, this, taskIndex, threadArea, tileSize] { ...
4 years, 11 months ago (2016-01-25 21:02:01 UTC) #10
msarett
"> Are you sure this is a situation that's best handled by multithreading, as > ...
4 years, 11 months ago (2016-01-25 21:49:00 UTC) #11
adaubert
https://codereview.chromium.org/1634763002/diff/20001/src/codec/SkRawCodec.cpp File src/codec/SkRawCodec.cpp (right): https://codereview.chromium.org/1634763002/diff/20001/src/codec/SkRawCodec.cpp#newcode306 src/codec/SkRawCodec.cpp:306: SkAutoTDelete<SkDngHost> host(fHost.release()); This change is not necessary. https://codereview.chromium.org/1634763002/diff/20001/src/codec/SkRawCodec.cpp#newcode399 src/codec/SkRawCodec.cpp:399: ...
4 years, 11 months ago (2016-01-26 09:26:38 UTC) #12
ebrauer
On 2016/01/25 21:49:00, msarett wrote: > "> Are you sure this is a situation that's ...
4 years, 11 months ago (2016-01-26 09:50:48 UTC) #13
ebrauer
https://codereview.chromium.org/1634763002/diff/20001/src/codec/SkRawCodec.cpp File src/codec/SkRawCodec.cpp (right): https://codereview.chromium.org/1634763002/diff/20001/src/codec/SkRawCodec.cpp#newcode71 src/codec/SkRawCodec.cpp:71: SkTaskGroup threadPool; On 2016/01/25 19:50:59, mtklein wrote: > This ...
4 years, 11 months ago (2016-01-26 09:53:08 UTC) #14
adaubert
https://codereview.chromium.org/1634763002/diff/60001/src/codec/SkRawCodec.cpp File src/codec/SkRawCodec.cpp (right): https://codereview.chromium.org/1634763002/diff/60001/src/codec/SkRawCodec.cpp#newcode101 src/codec/SkRawCodec.cpp:101: ++taskIndex; ++taskIndex; should be in the inner scope.
4 years, 11 months ago (2016-01-26 14:20:24 UTC) #15
ebrauer
https://codereview.chromium.org/1634763002/diff/60001/src/codec/SkRawCodec.cpp File src/codec/SkRawCodec.cpp (right): https://codereview.chromium.org/1634763002/diff/60001/src/codec/SkRawCodec.cpp#newcode101 src/codec/SkRawCodec.cpp:101: ++taskIndex; On 2016/01/26 14:20:24, adaubert wrote: > ++taskIndex; should ...
4 years, 11 months ago (2016-01-26 14:28:17 UTC) #16
msarett
“We have benchmarks for Linux and manually tested on Android N with the Files app. ...
4 years, 11 months ago (2016-01-26 21:34:03 UTC) #17
ebrauer
On 2016/01/26 21:34:03, msarett wrote: > “We have benchmarks for Linux and manually tested on ...
4 years, 11 months ago (2016-01-26 22:26:53 UTC) #18
ebrauer
https://codereview.chromium.org/1634763002/diff/80001/src/codec/SkRawCodec.cpp File src/codec/SkRawCodec.cpp (right): https://codereview.chromium.org/1634763002/diff/80001/src/codec/SkRawCodec.cpp#newcode44 src/codec/SkRawCodec.cpp:44: return dng_point((areaSize.v + tileSize.v - 1) / tileSize.v, On ...
4 years, 11 months ago (2016-01-26 22:50:59 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1634763002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1634763002/120001
4 years, 11 months ago (2016-01-27 13:25:07 UTC) #21
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
4 years, 11 months ago (2016-01-27 13:25:08 UTC) #22
msarett
Just a few nits. https://codereview.chromium.org/1634763002/diff/80001/src/codec/SkRawCodec.cpp File src/codec/SkRawCodec.cpp (right): https://codereview.chromium.org/1634763002/diff/80001/src/codec/SkRawCodec.cpp#newcode60 src/codec/SkRawCodec.cpp:60: if (tilesInThread.h < tilesInArea.h) { ...
4 years, 11 months ago (2016-01-27 15:34:43 UTC) #23
ebrauer
https://codereview.chromium.org/1634763002/diff/80001/src/codec/SkRawCodec.cpp File src/codec/SkRawCodec.cpp (right): https://codereview.chromium.org/1634763002/diff/80001/src/codec/SkRawCodec.cpp#newcode44 src/codec/SkRawCodec.cpp:44: return dng_point((areaSize.v + tileSize.v - 1) / tileSize.v, On ...
4 years, 11 months ago (2016-01-27 15:54:37 UTC) #24
msarett
lgtm :)
4 years, 11 months ago (2016-01-27 16:03:04 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1634763002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1634763002/160001
4 years, 11 months ago (2016-01-27 16:04:56 UTC) #28
commit-bot: I haz the power
4 years, 11 months ago (2016-01-27 16:21:06 UTC) #30
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://skia.googlesource.com/skia/+/b84b5b42c1d848aa2b87216b9bda2b8c9e5781c1

Powered by Google App Engine
This is Rietveld 408576698