Chromium Code Reviews

Unified Diff: Source/web/WebViewImpl.cpp

Issue 703903002: [WebGL-blink] Add test function to force fail the webgl-context (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove decleration from webwidget. Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « Source/web/WebViewImpl.h ('k') | public/web/WebView.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebViewImpl.cpp
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
index ded0534d728ac1ff5474387b4f7fde5768b41121..46b04e047392f71c8e84ee1d9668fa0682a82903 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -61,6 +61,7 @@
#include "core/html/HTMLMediaElement.h"
#include "core/html/HTMLPlugInElement.h"
#include "core/html/HTMLTextAreaElement.h"
+#include "core/html/canvas/WebGLRenderingContext.h"
#include "core/html/ime/InputMethodContext.h"
#include "core/inspector/InspectorController.h"
#include "core/loader/DocumentLoader.h"
@@ -4500,4 +4501,9 @@ bool WebViewImpl::shouldDisableDesktopWorkarounds()
|| (constraints.minimumScale == constraints.maximumScale && constraints.minimumScale != -1);
}
+void WebViewImpl::forceNextWebGLContextCreationToFail()
+{
+ WebGLRenderingContext::forceNextWebGLContextCreationToFail();
+}
+
} // namespace blink
« no previous file with comments | « Source/web/WebViewImpl.h ('k') | public/web/WebView.h » ('j') | no next file with comments »

Powered by Google App Engine