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

Issue 2335223004: Make SharedGpuContext recover automatically after a context loss (Closed)

Created:
4 years, 3 months ago by Justin Novosad
Modified:
4 years, 3 months ago
Reviewers:
xidachen
CC:
chromium-reviews, krit, drott+blinkwatch_chromium.org, blink-reviews-platform-graphics_chromium.org, dshwang, pdr+graphicswatchlist_chromium.org, jbroman, Rik, f(malita), blink-reviews, piman+watch_chromium.org, danakj+watch_chromium.org, ajuma+watch_chromium.org, Stephen Chennney, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make SharedGpuContext recover automatically after a context loss The lack of gpu context recovery was causing some layout tests to be flaky. After running the test virtual/gpu/fast/canvas/canvas-lost-gpu-context.html all subsequent gpu tests run in the same instance of content_shell would fail. BUG=646973 Committed: https://crrev.com/bb27517d08d74205ceaddc98cfae311916883d09 Cr-Commit-Position: refs/heads/master@{#418998}

Patch Set 1 #

Patch Set 2 : +test #

Patch Set 3 : fix flake for real #

Total comments: 3

Patch Set 4 : build fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -17 lines) Patch
M third_party/WebKit/Source/platform/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.h View 1 2 3 3 chunks +10 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.cpp View 1 2 3 chunks +31 lines, -11 lines 0 comments Download
A third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContextTest.cpp View 1 2 1 chunk +50 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (14 generated)
Justin Novosad
PTAL
4 years, 3 months ago (2016-09-14 20:43:42 UTC) #3
Justin Novosad
New patch. This one fixes flake for realz.
4 years, 3 months ago (2016-09-15 17:54:20 UTC) #7
xidachen
https://codereview.chromium.org/2335223004/diff/40001/third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.h File third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.h (right): https://codereview.chromium.org/2335223004/diff/40001/third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.h#newcode21 third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.h:21: class SharedGpuContext { I think you need to add ...
4 years, 3 months ago (2016-09-15 18:53:35 UTC) #12
danakj
https://codereview.chromium.org/2335223004/diff/40001/third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.h File third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.h (right): https://codereview.chromium.org/2335223004/diff/40001/third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.h#newcode31 third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.h:31: static bool isValidWithoutRestoring(); On 2016/09/15 18:53:35, xidachen wrote: > ...
4 years, 3 months ago (2016-09-15 19:00:58 UTC) #13
Justin Novosad
On 2016/09/15 18:53:35, xidachen wrote: > https://codereview.chromium.org/2335223004/diff/40001/third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.h#newcode31 > third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.h:31: static > bool isValidWithoutRestoring(); > Is ...
4 years, 3 months ago (2016-09-15 20:33:02 UTC) #14
Justin Novosad
new patch
4 years, 3 months ago (2016-09-15 20:35:57 UTC) #16
xidachen
On 2016/09/15 20:35:57, Justin Novosad wrote: > new patch lgtm
4 years, 3 months ago (2016-09-15 20:37:09 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2335223004/60001
4 years, 3 months ago (2016-09-15 20:40:21 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-15 21:59:00 UTC) #22
commit-bot: I haz the power
4 years, 3 months ago (2016-09-15 22:02:57 UTC) #24
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/bb27517d08d74205ceaddc98cfae311916883d09
Cr-Commit-Position: refs/heads/master@{#418998}

Powered by Google App Engine
This is Rietveld 408576698