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

Issue 11378008: Raise an infobar and deny access to WebGL if a GPU reset was detected while a web page containing W… (Closed)

Created:
8 years, 1 month ago by Ken Russell (switch to Gerrit)
Modified:
8 years, 1 month ago
CC:
chromium-reviews, Avi (use Gerrit), creis+watch_chromium.org, apatrick_chromium, joi+watch-content_chromium.org, darin-cc_chromium.org, ajwong+watch_chromium.org
Visibility:
Public.

Description

Raise an infobar and deny access to WebGL if a GPU reset was detected while a web page containing WebGL content was visible. The same mechanism will work for Pepper 3D but has not been hooked up for that API yet. https://bugs.webkit.org/show_bug.cgi?id=101826 added the hooks out through the Chromium WebKit API. BUG=125125 TEST=GPUCrashTest.ContextLossRaisesInfobar Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=168794

Patch Set 1 #

Patch Set 2 : Restructured based on review feedback from @jam. #

Patch Set 3 : Cleanups after restructuring based on review feedback from @jam. #

Total comments: 25

Patch Set 4 : Further cleanups suggested by @jam. #

Total comments: 33

Patch Set 5 : Addressed @pkasting's review feedback on infobar. #

Patch Set 6 : Rebaselined to top of tree. #

Patch Set 7 : Work around build failure on Mac OS with 10.6 SDK. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+751 lines, -34 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +17 lines, -0 lines 0 comments Download
M chrome/browser/api/infobars/infobar_delegate.h View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/api/infobars/infobar_delegate.cc View 1 chunk +4 lines, -0 lines 0 comments Download
A chrome/browser/three_d_api_observer.h View 1 1 chunk +27 lines, -0 lines 0 comments Download
A chrome/browser/three_d_api_observer.cc View 1 2 3 4 1 chunk +118 lines, -0 lines 0 comments Download
M chrome/browser/ui/tab_contents/tab_contents.cc View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/gpu/gpu_crash_browsertest.cc View 3 chunks +27 lines, -0 lines 0 comments Download
M content/browser/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/gpu/gpu_data_manager_impl.h View 1 8 chunks +69 lines, -1 line 0 comments Download
M content/browser/gpu/gpu_data_manager_impl.cc View 1 5 chunks +123 lines, -1 line 0 comments Download
M content/browser/gpu/gpu_data_manager_impl_unittest.cc View 1 11 chunks +182 lines, -31 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.h View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 3 4 5 6 6 chunks +78 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 6 3 chunks +18 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/public/browser/gpu_data_manager.h View 1 2 chunks +7 lines, -0 lines 0 comments Download
M content/public/browser/web_contents_observer.h View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
A content/public/common/three_d_api_types.h View 1 chunk +21 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 2 chunks +23 lines, -0 lines 0 comments Download
M content/test/data/gpu/webgl.html View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 19 (0 generated)
jam
https://codereview.chromium.org/11378008/diff/5001/chrome/test/gpu/gpu_crash_browsertest.cc File chrome/test/gpu/gpu_crash_browsertest.cc (right): https://codereview.chromium.org/11378008/diff/5001/chrome/test/gpu/gpu_crash_browsertest.cc#newcode87 chrome/test/gpu/gpu_crash_browsertest.cc:87: IN_PROC_BROWSER_TEST_F(GPUCrashTest, ContextLossRaisesInfobar) { can you make this test be ...
8 years, 1 month ago (2012-11-15 16:57:25 UTC) #1
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/11378008/diff/5001/chrome/test/gpu/gpu_crash_browsertest.cc File chrome/test/gpu/gpu_crash_browsertest.cc (right): https://codereview.chromium.org/11378008/diff/5001/chrome/test/gpu/gpu_crash_browsertest.cc#newcode87 chrome/test/gpu/gpu_crash_browsertest.cc:87: IN_PROC_BROWSER_TEST_F(GPUCrashTest, ContextLossRaisesInfobar) { On 2012/11/15 16:57:25, John Abd-El-Malek wrote: ...
8 years, 1 month ago (2012-11-15 20:53:25 UTC) #2
jam
lgtm https://codereview.chromium.org/11378008/diff/5001/content/browser/gpu/gpu_data_manager_impl.h File content/browser/gpu/gpu_data_manager_impl.h (right): https://codereview.chromium.org/11378008/diff/5001/content/browser/gpu/gpu_data_manager_impl.h#newcode231 content/browser/gpu/gpu_data_manager_impl.h:231: mutable std::list<base::Time> timestamps_of_gpu_resets_; On 2012/11/15 20:53:25, kbr wrote: ...
8 years, 1 month ago (2012-11-15 21:11:38 UTC) #3
Ken Russell (switch to Gerrit)
zmo: please review. This CL replaces https://codereview.chromium.org/11366237/ . The logic from that CL is unchanged, ...
8 years, 1 month ago (2012-11-15 21:25:04 UTC) #4
jam
On 2012/11/15 21:25:04, kbr wrote: > zmo: please review. This CL replaces https://codereview.chromium.org/11366237/ . > ...
8 years, 1 month ago (2012-11-15 21:27:06 UTC) #5
Peter Kasting
LGTM with a number of cleanups to make the infobar you're defining consistent with our ...
8 years, 1 month ago (2012-11-15 21:59:59 UTC) #6
palmer
LGTM from an IPC security perspective.
8 years, 1 month ago (2012-11-15 22:25:30 UTC) #7
Zhenyao Mo
LGTM One suggestion though: should we also add a commandline switch to disable the infobar? ...
8 years, 1 month ago (2012-11-15 22:38:45 UTC) #8
Peter Kasting
On 2012/11/15 22:38:45, Zhenyao Mo wrote: > One suggestion though: should we also add a ...
8 years, 1 month ago (2012-11-15 22:40:15 UTC) #9
Ken Russell (switch to Gerrit)
@pkasting: thanks for your review. https://codereview.chromium.org/11378008/diff/14001/chrome/browser/three_d_api_observer.cc File chrome/browser/three_d_api_observer.cc (right): https://codereview.chromium.org/11378008/diff/14001/chrome/browser/three_d_api_observer.cc#newcode17 chrome/browser/three_d_api_observer.cc:17: // ThreeDAPIInfoBarDelegate On 2012/11/15 ...
8 years, 1 month ago (2012-11-15 22:59:23 UTC) #10
Ken Russell (switch to Gerrit)
On 2012/11/15 22:40:15, Peter Kasting wrote: > On 2012/11/15 22:38:45, Zhenyao Mo wrote: > > ...
8 years, 1 month ago (2012-11-15 23:00:33 UTC) #11
Peter Kasting
https://codereview.chromium.org/11378008/diff/14001/chrome/browser/three_d_api_observer.cc File chrome/browser/three_d_api_observer.cc (right): https://codereview.chromium.org/11378008/diff/14001/chrome/browser/three_d_api_observer.cc#newcode20 chrome/browser/three_d_api_observer.cc:20: // with client 3D APIs and GPU resets. On ...
8 years, 1 month ago (2012-11-15 23:41:24 UTC) #12
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/11378008/diff/14001/chrome/browser/three_d_api_observer.cc File chrome/browser/three_d_api_observer.cc (right): https://codereview.chromium.org/11378008/diff/14001/chrome/browser/three_d_api_observer.cc#newcode94 chrome/browser/three_d_api_observer.cc:94: api_name); On 2012/11/15 23:41:24, Peter Kasting wrote: > On ...
8 years, 1 month ago (2012-11-16 02:26:58 UTC) #13
Peter Kasting
On 2012/11/16 02:26:58, kbr wrote: > > Is the build guaranteed to break on all ...
8 years, 1 month ago (2012-11-16 02:44:50 UTC) #14
Ken Russell (switch to Gerrit)
For the record: the try job failures on the Linux GPU bot are caused by ...
8 years, 1 month ago (2012-11-20 01:15:11 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kbr@chromium.org/11378008/8006
8 years, 1 month ago (2012-11-20 01:16:03 UTC) #16
commit-bot: I haz the power
Retried try job too often for step(s) interactive_ui_tests
8 years, 1 month ago (2012-11-20 02:31:19 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kbr@chromium.org/11378008/8006
8 years, 1 month ago (2012-11-20 12:51:54 UTC) #18
commit-bot: I haz the power
8 years, 1 month ago (2012-11-20 13:14:15 UTC) #19
Change committed as 168794

Powered by Google App Engine
This is Rietveld 408576698