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

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: rebase Created 4 years, 8 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
« no previous file with comments | « content/browser/frame_host/render_frame_message_filter.h ('k') | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c21a25e91749ece483c42adb7ce8e0e2ab370cde..98bd0fd5e3783c7150b678adff464706a4864953 100644
--- a/content/browser/frame_host/render_frame_message_filter.cc
+++ b/content/browser/frame_host/render_frame_message_filter.cc
@@ -208,7 +208,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)
@@ -364,27 +363,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
« no previous file with comments | « content/browser/frame_host/render_frame_message_filter.h ('k') | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698