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

Issue 1379853003: Fix for nexus 5 crashing in GL benches (Closed)

Created:
5 years, 2 months ago by joshua.litt
Modified:
5 years, 2 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Fix for nexus 5 crashing in GL benches GLBenches do not expect gl state to change between onPerCanvasPreDraw and *PostDraw, but we do a clear and sometimes we clear as draw. This causes us to bind vertex objects / programs / etc. This change creates two new virtual methods which are called right before and immediately after timing. BUG=skia: Committed: https://skia.googlesource.com/skia/+/8a6697af95b340aad6dee7e6228048fa305c1e59

Patch Set 1 #

Patch Set 2 : add post hook #

Total comments: 2

Patch Set 3 : feedback inc #

Patch Set 4 : tweaks #

Patch Set 5 : tweaks #

Patch Set 6 : tweaks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -58 lines) Patch
M bench/AlternatingColorPatternBench.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M bench/Benchmark.h View 1 2 3 2 chunks +8 lines, -2 lines 0 comments Download
M bench/Benchmark.cpp View 1 2 1 chunk +10 lines, -2 lines 0 comments Download
M bench/BigPathBench.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M bench/BitmapBench.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M bench/BitmapRectBench.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M bench/BitmapRegionDecoderBench.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M bench/BitmapRegionDecoderBench.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M bench/BitmapScaleBench.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M bench/BlurImageFilterBench.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M bench/CodecBench.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M bench/CodecBench.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M bench/ColorCubeBench.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M bench/ColorPrivBench.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M bench/DecodingBench.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M bench/DecodingBench.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M bench/DisplacementBench.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M bench/DrawBitmapAABench.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M bench/ETCBitmapBench.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M bench/FSRectBench.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M bench/GLBench.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M bench/GLBench.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M bench/GameBench.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M bench/GeometryBench.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M bench/GrResourceCacheBench.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M bench/ImageFilterCollapse.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M bench/MagnifierBench.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M bench/MatrixBench.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M bench/MergeBench.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M bench/MipMapBench.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M bench/PatchBench.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M bench/PatchGridBench.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M bench/PathBench.cpp View 1 2 6 chunks +6 lines, -6 lines 0 comments Download
M bench/PictureNestingBench.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M bench/PicturePlaybackBench.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M bench/PremulAndUnpremulAlphaOpsBench.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M bench/RTreeBench.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M bench/RectBench.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M bench/RectanizerBench.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M bench/RepeatTileBench.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M bench/SkipZeroesBench.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M bench/SortBench.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M bench/TextBench.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M bench/TextBlobBench.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M bench/nanobench.cpp View 1 2 3 4 3 chunks +3 lines, -1 line 0 comments Download
M tools/VisualBench/VisualInteractiveModule.cpp View 1 2 4 chunks +4 lines, -1 line 0 comments Download
M tools/VisualBench/VisualLightweightBenchModule.cpp View 1 2 3 4 5 3 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 22 (10 generated)
joshualitt
ptal, a straightforward change. Eventually we will move to visual bench anyways, but these benches ...
5 years, 2 months ago (2015-09-30 17:09:06 UTC) #3
mtklein_C
On 2015/09/30 17:09:06, joshualitt wrote: > anyways, but these benches should crash even if run ...
5 years, 2 months ago (2015-09-30 17:13:23 UTC) #4
joshualitt
On 2015/09/30 17:13:23, mtklein_C wrote: > On 2015/09/30 17:09:06, joshualitt wrote: > > anyways, but ...
5 years, 2 months ago (2015-09-30 17:21:04 UTC) #5
mtklein_C
https://codereview.chromium.org/1379853003/diff/20001/bench/Benchmark.h File bench/Benchmark.h (right): https://codereview.chromium.org/1379853003/diff/20001/bench/Benchmark.h#newcode78 bench/Benchmark.h:78: void perCanvasLastCallBeforeDraw(SkCanvas*); Having names this similar to the perCanvas-flavored ...
5 years, 2 months ago (2015-09-30 17:26:29 UTC) #7
joshualitt
feedback incorporated https://codereview.chromium.org/1379853003/diff/20001/bench/Benchmark.h File bench/Benchmark.h (right): https://codereview.chromium.org/1379853003/diff/20001/bench/Benchmark.h#newcode78 bench/Benchmark.h:78: void perCanvasLastCallBeforeDraw(SkCanvas*); On 2015/09/30 17:26:29, mtklein_C wrote: ...
5 years, 2 months ago (2015-09-30 17:57:17 UTC) #8
mtklein
lgtm
5 years, 2 months ago (2015-09-30 18:01:46 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1379853003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1379853003/60001
5 years, 2 months ago (2015-09-30 18:02:05 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot/builds/3409) Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot on client.skia (JOB_FAILED, ...
5 years, 2 months ago (2015-09-30 18:02:58 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1379853003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1379853003/80001
5 years, 2 months ago (2015-09-30 18:43:25 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: Build-Ubuntu-GCC-x86_64-Release-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-x86_64-Release-Trybot/builds/3493)
5 years, 2 months ago (2015-09-30 18:44:27 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1379853003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1379853003/100001
5 years, 2 months ago (2015-09-30 19:03:49 UTC) #21
commit-bot: I haz the power
5 years, 2 months ago (2015-09-30 19:11:11 UTC) #22
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://skia.googlesource.com/skia/+/8a6697af95b340aad6dee7e6228048fa305c1e59

Powered by Google App Engine
This is Rietveld 408576698