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

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: added test case Created 6 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: Source/web/WebViewImpl.cpp
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
index d002f3e658c7938c78fc23dd505c927885655d79..9fbcbea812629b3fb4d761caed2b770b34660d22 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"
@@ -4482,4 +4483,9 @@ bool WebViewImpl::shouldDisableDesktopWorkarounds()
|| (constraints.minimumScale == constraints.maximumScale && constraints.minimumScale != -1);
}
+void WebViewImpl::forceNextWebGLContextCreationToFail(bool forceFailContext)
+{
+ WebGLRenderingContext::forceNextWebGLContextCreationToFail(forceFailContext);
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698