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

Issue 566021: [GPU] GLES2 lost context recovery (Closed)

Created:
10 years, 10 months ago by apatrick_chromium
Modified:
9 years, 7 months ago
Reviewers:
alokp
CC:
chromium-reviews, Aaron Boodman, darin (slow to review), pam+watch_chromium.org, Erik does not do reviews, apatrick_chromium, sehr (please use chromium), Ken Russell (switch to Gerrit), greggman
Visibility:
Public.

Description

Added support for lost context recovery on the client side. None of our service side GL implementations actually report lost contexts (yet). Added pglGetError to PGL library. pglSwapBuffers returns false on a lost context or other non-recoverable error and pglGetError reports PGL_CONTEXT_LOST. Updated demo plugins to reset their PGL contexts on context lost. Standalone plugins cannot currently recover from lost context because they don't use PGL. Added error code to NPDeviceContext3D for lost context. TEST=none BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=38039

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 9

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+229 lines, -104 lines) Patch
M gpu/command_buffer/client/gles2_demo.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M gpu/command_buffer/client/gles2_demo_c.h View 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/client/gles2_demo_c.c View 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/client/gles2_demo_cc.h View 1 chunk +2 lines, -1 line 0 comments Download
M gpu/command_buffer/client/gles2_demo_cc.cc View 2 chunks +29 lines, -37 lines 0 comments Download
M gpu/command_buffer/client/gles2_lib.cc View 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/common/constants.h View 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M gpu/demos/framework/plugin.h View 1 chunk +3 lines, -0 lines 0 comments Download
M gpu/demos/framework/plugin.cc View 1 2 5 chunks +38 lines, -17 lines 0 comments Download
M gpu/pgl/pgl.h View 2 chunks +17 lines, -1 line 0 comments Download
M gpu/pgl/pgl.cc View 1 2 6 chunks +64 lines, -21 lines 0 comments Download
M third_party/npapi/bindings/npapi_extensions.h View 1 chunk +15 lines, -0 lines 0 comments Download
M webkit/tools/pepper_test_plugin/plugin_object.h View 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/tools/pepper_test_plugin/plugin_object.cc View 1 2 4 chunks +51 lines, -21 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
apatrick_chromium
10 years, 10 months ago (2010-02-02 21:55:19 UTC) #1
alokp
http://codereview.chromium.org/566021/diff/4001/5013 File gpu/demos/framework/plugin.cc (right): http://codereview.chromium.org/566021/diff/4001/5013#newcode99 gpu/demos/framework/plugin.cc:99: pglMakeCurrent(NULL); pglMakeCurrent(NULL) should be moved to DestroyContext() http://codereview.chromium.org/566021/diff/4001/5013#newcode132 gpu/demos/framework/plugin.cc:132: ...
10 years, 10 months ago (2010-02-02 23:47:34 UTC) #2
alokp
Would it be possible to instead generate an event when context is lost. It will ...
10 years, 10 months ago (2010-02-02 23:50:13 UTC) #3
greggman
On Tue, Feb 2, 2010 at 3:50 PM, <alokp@chromium.org> wrote: > Would it be possible ...
10 years, 10 months ago (2010-02-02 23:59:33 UTC) #4
alokp
Yes you right. I see that EGL follows the same pattern: "Following a power management ...
10 years, 10 months ago (2010-02-03 00:07:05 UTC) #5
apatrick_chromium
http://codereview.chromium.org/566021/diff/4001/5013 File gpu/demos/framework/plugin.cc (right): http://codereview.chromium.org/566021/diff/4001/5013#newcode99 gpu/demos/framework/plugin.cc:99: pglMakeCurrent(NULL); On 2010/02/02 23:47:34, alokp wrote: > pglMakeCurrent(NULL) should ...
10 years, 10 months ago (2010-02-03 00:25:24 UTC) #6
alokp
http://codereview.chromium.org/566021/diff/4001/5013 File gpu/demos/framework/plugin.cc (right): http://codereview.chromium.org/566021/diff/4001/5013#newcode99 gpu/demos/framework/plugin.cc:99: pglMakeCurrent(NULL); oh ok. I did not know pglDestroyContext already ...
10 years, 10 months ago (2010-02-03 00:42:47 UTC) #7
apatrick_chromium
Done
10 years, 10 months ago (2010-02-03 01:24:04 UTC) #8
alokp
10 years, 10 months ago (2010-02-03 01:40:04 UTC) #9
lgtm

Powered by Google App Engine
This is Rietveld 408576698