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

Unified Diff: content/renderer/render_view_impl.h

Issue 11378008: Raise an infobar and deny access to WebGL if a GPU reset was detected while a web page containing W… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanups after restructuring based on review feedback from @jam. Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/render_view_impl.h
diff --git a/content/renderer/render_view_impl.h b/content/renderer/render_view_impl.h
index f15fa740b578bd7b5eb93fdc0f5854c518828c51..0e5673044ed4bc2644cbaee6358ce156e2d078b2 100644
--- a/content/renderer/render_view_impl.h
+++ b/content/renderer/render_view_impl.h
@@ -655,6 +655,13 @@ class CONTENT_EXPORT RenderViewImpl
virtual WebKit::WebString userAgentOverride(
WebKit::WebFrame* frame,
const WebKit::WebURL& url) OVERRIDE;
+ // Indicates whether 3D APIs (Pepper 3D, WebGL) are blocked for the
jam 2012/11/15 16:57:25 nit: don't comment functions on overridden methods
Ken Russell (switch to Gerrit) 2012/11/15 20:53:25 Done.
+ // given frame because the GPU was reset recently. Has the
+ // side-effect of raising an infobar if the answer is true.
+ virtual bool allowWebGL(WebKit::WebFrame* frame, bool defaultValue) OVERRIDE;
jam 2012/11/15 16:57:25 nit: default_value per google style
Ken Russell (switch to Gerrit) 2012/11/15 20:53:25 Done.
+ virtual void didLoseWebGLContext(
+ WebKit::WebFrame* frame,
+ int arb_robustness_status_code) OVERRIDE;
// WebKit::WebPageSerializerClient implementation ----------------------------

Powered by Google App Engine
This is Rietveld 408576698