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

Unified Diff: content/browser/frame_host/render_frame_message_filter.cc

Issue 1747283003: Remove redundant codepath for webgl api blocking (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: better handle 'exit_on_context_lost' Created 4 years, 9 months 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/browser/frame_host/render_frame_message_filter.cc
diff --git a/content/browser/frame_host/render_frame_message_filter.cc b/content/browser/frame_host/render_frame_message_filter.cc
index 803ce426f4fd58617fe21657165e315d13ca83b6..3d4165dd90900347af379d91a257cddc948f7359 100644
--- a/content/browser/frame_host/render_frame_message_filter.cc
+++ b/content/browser/frame_host/render_frame_message_filter.cc
@@ -302,7 +302,6 @@ bool RenderFrameMessageFilter::OnMessageReceived(const IPC::Message& message) {
IPC_MESSAGE_HANDLER_DELAY_REPLY(FrameHostMsg_GetCookies, OnGetCookies)
IPC_MESSAGE_HANDLER(FrameHostMsg_CookiesEnabled, OnCookiesEnabled)
IPC_MESSAGE_HANDLER(FrameHostMsg_Are3DAPIsBlocked, OnAre3DAPIsBlocked)
- IPC_MESSAGE_HANDLER(FrameHostMsg_DidLose3DContext, OnDidLose3DContext)
IPC_MESSAGE_HANDLER_GENERIC(FrameHostMsg_RenderProcessGone,
OnRenderProcessGone())
#if defined(ENABLE_PLUGINS)
@@ -449,27 +448,6 @@ void RenderFrameMessageFilter::OnAre3DAPIsBlocked(int render_frame_id,
top_origin_url, render_process_id_, render_frame_id, requester);
}
-void RenderFrameMessageFilter::OnDidLose3DContext(
- const GURL& top_origin_url,
- ThreeDAPIType /* unused */,
- int arb_robustness_status_code) {
- GpuDataManagerImpl::DomainGuilt guilt;
- switch (arb_robustness_status_code) {
- case GL_GUILTY_CONTEXT_RESET_ARB:
- guilt = GpuDataManagerImpl::DOMAIN_GUILT_KNOWN;
- break;
- case GL_UNKNOWN_CONTEXT_RESET_ARB:
- guilt = GpuDataManagerImpl::DOMAIN_GUILT_UNKNOWN;
- break;
- default:
- // Ignore lost contexts known to be innocent.
- return;
- }
-
- GpuDataManagerImpl::GetInstance()->BlockDomainFrom3DAPIs(
- top_origin_url, guilt);
-}
-
void RenderFrameMessageFilter::OnRenderProcessGone() {
// FrameHostMessage_RenderProcessGone is a synthetic IPC message used by
// RenderProcessHostImpl to clean things up after a crash (it's injected

Powered by Google App Engine
This is Rietveld 408576698