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

Unified Diff: content/browser/renderer_host/gpu_message_filter.h

Issue 1368583006: Don't use view contexts in the renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 2 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/renderer_host/gpu_message_filter.h
diff --git a/content/browser/renderer_host/gpu_message_filter.h b/content/browser/renderer_host/gpu_message_filter.h
index 6e216d6aeca3bdec2c5e10b4ee81703b290e9be3..e1dd8565ab3f54c78edb0d6fdb018c7b15165e3c 100644
--- a/content/browser/renderer_host/gpu_message_filter.h
+++ b/content/browser/renderer_host/gpu_message_filter.h
@@ -5,36 +5,23 @@
#ifndef CONTENT_BROWSER_RENDERER_HOST_GPU_MESSAGE_FILTER_H_
#define CONTENT_BROWSER_RENDERER_HOST_GPU_MESSAGE_FILTER_H_
-#include <vector>
-
-#include "base/memory/linked_ptr.h"
-#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
-#include "base/sequenced_task_runner_helpers.h"
#include "content/common/gpu/gpu_process_launch_causes.h"
-#include "content/common/gpu/gpu_result_codes.h"
#include "content/public/browser/browser_message_filter.h"
-#include "ui/gfx/native_widget_types.h"
-
-class GpuProcessHost;
-struct GPUCreateCommandBufferConfig;
namespace gpu {
struct GPUInfo;
}
namespace content {
-class RenderWidgetHelper;
-class RenderWidgetHostViewFrameSubscriber;
-// A message filter for messages from the renderer to the GpuProcessHost(UIShim)
+// A message filter for messages from the renderer to the GpuProcessHost
// in the browser. Such messages are typically destined for the GPU process,
// but need to be mediated by the browser.
class GpuMessageFilter : public BrowserMessageFilter {
public:
- GpuMessageFilter(int render_process_id,
- RenderWidgetHelper* render_widget_helper);
+ GpuMessageFilter(int render_process_id);
// BrowserMessageFilter methods:
bool OnMessageReceived(const IPC::Message& message) override;
@@ -42,30 +29,20 @@ class GpuMessageFilter : public BrowserMessageFilter {
private:
friend class BrowserThread;
friend class base::DeleteHelper<GpuMessageFilter>;
- struct CreateViewCommandBufferRequest;
- struct FrameSubscription;
~GpuMessageFilter() override;
// Message handlers called on the browser IO thread:
void OnEstablishGpuChannel(CauseForGpuLaunch,
IPC::Message* reply);
- void OnCreateViewCommandBuffer(
- const GPUCreateCommandBufferConfig& init_params,
- int32 route_id,
- IPC::Message* reply);
// Helper callbacks for the message handlers.
void EstablishChannelCallback(scoped_ptr<IPC::Message> reply,
const IPC::ChannelHandle& channel,
const gpu::GPUInfo& gpu_info);
- void CreateCommandBufferCallback(scoped_ptr<IPC::Message> reply,
- CreateCommandBufferResult result);
int gpu_process_id_;
int render_process_id_;
- scoped_refptr<RenderWidgetHelper> render_widget_helper_;
-
base::WeakPtrFactory<GpuMessageFilter> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(GpuMessageFilter);

Powered by Google App Engine
This is Rietveld 408576698