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

Issue 1974833003: SkPictureGpuAnalyzer (Closed)

Created:
4 years, 7 months ago by f(malita)
Modified:
4 years, 7 months ago
Reviewers:
chrishtr, bsalomon, reed1
CC:
reviews_skia.org
Base URL:
https://chromium.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

SkPictureGpuAnalyzer Stateful helper for gathering multi-picture GPU stats. Exposes the existing SkPicture GPU veto semantics, while preserving the SKP impl (which has some nice properties: lazy, hierarchical, cached per pic). R=reed@google.com,bsalomon@google.com GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1974833003 Committed: https://skia.googlesource.com/skia/+/796e365999220f53acc58ba91ed55bb35900c8bc

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : unneeded 'explicit' #

Total comments: 2

Patch Set 5 : pass GrContext to ctor #

Patch Set 6 : #

Patch Set 7 : GrContextThreadSafeProxy #

Total comments: 2

Patch Set 8 : sk_sp<GrContextThreadSafeProxy> #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -10 lines) Patch
M gyp/core.gypi View 2 chunks +2 lines, -0 lines 0 comments Download
M include/core/SkPicture.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
A include/core/SkPictureAnalyzer.h View 1 2 3 4 5 6 7 1 chunk +52 lines, -0 lines 2 comments Download
M src/core/SkPicture.cpp View 1 2 chunks +2 lines, -0 lines 0 comments Download
A src/core/SkPictureAnalyzer.cpp View 1 2 3 4 5 6 7 1 chunk +50 lines, -0 lines 0 comments Download
M tests/PictureTest.cpp View 1 2 3 4 5 6 7 8 chunks +46 lines, -9 lines 0 comments Download
M tools/gpuveto.cpp View 1 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 28 (11 generated)
f(malita)
For now this is just a stateful wrapper for existing SkPicture's numSlowPaths and heuristics.
4 years, 7 months ago (2016-05-12 19:57:43 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1974833003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1974833003/40001
4 years, 7 months ago (2016-05-12 19:57:59 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1974833003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1974833003/60001
4 years, 7 months ago (2016-05-12 19:59:19 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-12 20:25:50 UTC) #9
bsalomon
https://codereview.chromium.org/1974833003/diff/60001/include/core/SkPictureAnalyzer.h File include/core/SkPictureAnalyzer.h (right): https://codereview.chromium.org/1974833003/diff/60001/include/core/SkPictureAnalyzer.h#newcode39 include/core/SkPictureAnalyzer.h:39: bool suitableForGpuRasterization(GrContext*, const char** whyNot = nullptr) const; Should ...
4 years, 7 months ago (2016-05-12 20:59:02 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1974833003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1974833003/80001
4 years, 7 months ago (2016-05-12 20:59:06 UTC) #12
f(malita)
https://codereview.chromium.org/1974833003/diff/60001/include/core/SkPictureAnalyzer.h File include/core/SkPictureAnalyzer.h (right): https://codereview.chromium.org/1974833003/diff/60001/include/core/SkPictureAnalyzer.h#newcode39 include/core/SkPictureAnalyzer.h:39: bool suitableForGpuRasterization(GrContext*, const char** whyNot = nullptr) const; On ...
4 years, 7 months ago (2016-05-12 21:15:19 UTC) #14
chrishtr
This approach looks good to me for the GPU veto use case in Chrome.
4 years, 7 months ago (2016-05-12 21:41:03 UTC) #15
bsalomon
https://codereview.chromium.org/1974833003/diff/120001/include/core/SkPictureAnalyzer.h File include/core/SkPictureAnalyzer.h (right): https://codereview.chromium.org/1974833003/diff/120001/include/core/SkPictureAnalyzer.h#newcode23 include/core/SkPictureAnalyzer.h:23: explicit SkPictureGpuAnalyzer(GrContextThreadSafeProxy* = nullptr); sk_sp<GrContextThreadSafeProxy>?
4 years, 7 months ago (2016-05-13 16:14:27 UTC) #16
f(malita)
https://codereview.chromium.org/1974833003/diff/120001/include/core/SkPictureAnalyzer.h File include/core/SkPictureAnalyzer.h (right): https://codereview.chromium.org/1974833003/diff/120001/include/core/SkPictureAnalyzer.h#newcode23 include/core/SkPictureAnalyzer.h:23: explicit SkPictureGpuAnalyzer(GrContextThreadSafeProxy* = nullptr); On 2016/05/13 16:14:27, bsalomon wrote: ...
4 years, 7 months ago (2016-05-13 16:59:16 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1974833003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1974833003/140001
4 years, 7 months ago (2016-05-13 16:59:28 UTC) #19
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-13 17:22:44 UTC) #21
bsalomon
lgtm
4 years, 7 months ago (2016-05-13 17:43:20 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1974833003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1974833003/140001
4 years, 7 months ago (2016-05-13 18:39:12 UTC) #24
commit-bot: I haz the power
Committed patchset #8 (id:140001) as https://skia.googlesource.com/skia/+/796e365999220f53acc58ba91ed55bb35900c8bc
4 years, 7 months ago (2016-05-13 18:40:11 UTC) #26
reed1
https://codereview.chromium.org/1974833003/diff/140001/include/core/SkPictureAnalyzer.h File include/core/SkPictureAnalyzer.h (right): https://codereview.chromium.org/1974833003/diff/140001/include/core/SkPictureAnalyzer.h#newcode25 include/core/SkPictureAnalyzer.h:25: explicit SkPictureGpuAnalyzer(sk_sp<GrContextThreadSafeProxy> = nullptr); Are we really ref-ing the ...
4 years, 7 months ago (2016-05-13 19:35:47 UTC) #27
f(malita)
4 years, 7 months ago (2016-05-13 19:46:45 UTC) #28
Message was sent while issue was closed.
https://codereview.chromium.org/1974833003/diff/140001/include/core/SkPicture...
File include/core/SkPictureAnalyzer.h (right):

https://codereview.chromium.org/1974833003/diff/140001/include/core/SkPicture...
include/core/SkPictureAnalyzer.h:25: explicit
SkPictureGpuAnalyzer(sk_sp<GrContextThreadSafeProxy> = nullptr);
On 2016/05/13 19:35:47, reed1 wrote:
> Are we really ref-ing the ctx? Do we need the analyzer to outlive the caller's
> grcontext?

Hmm, good question: the current use pattern doesn't need a ref (short
lived/one-shot), but maybe going forward we'll want to cache these analyzers -
then holding a ref seems less fragile.

I don't have a strong opinion and at this point a ref doesn't have any
advantage; we can go whichever way you and Brian decide.

Powered by Google App Engine
This is Rietveld 408576698