OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_GPU_MESSAGE_FILTER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_GPU_MESSAGE_FILTER_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_GPU_MESSAGE_FILTER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_GPU_MESSAGE_FILTER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 | 36 |
37 private: | 37 private: |
38 friend class content::BrowserThread; | 38 friend class content::BrowserThread; |
39 friend class base::DeleteHelper<GpuMessageFilter>; | 39 friend class base::DeleteHelper<GpuMessageFilter>; |
40 virtual ~GpuMessageFilter(); | 40 virtual ~GpuMessageFilter(); |
41 | 41 |
42 // Message handlers called on the browser IO thread: | 42 // Message handlers called on the browser IO thread: |
43 void OnEstablishGpuChannel(content::CauseForGpuLaunch, | 43 void OnEstablishGpuChannel(content::CauseForGpuLaunch, |
44 IPC::Message* reply); | 44 IPC::Message* reply); |
45 void OnCreateViewCommandBuffer( | 45 void OnCreateViewCommandBuffer( |
46 int32 render_view_id, | 46 int32 surface_id, |
47 const GPUCreateCommandBufferConfig& init_params, | 47 const GPUCreateCommandBufferConfig& init_params, |
48 IPC::Message* reply); | 48 IPC::Message* reply); |
49 // Helper callbacks for the message handlers. | 49 // Helper callbacks for the message handlers. |
50 void EstablishChannelCallback(IPC::Message* reply, | 50 void EstablishChannelCallback(IPC::Message* reply, |
51 const IPC::ChannelHandle& channel, | 51 const IPC::ChannelHandle& channel, |
52 base::ProcessHandle gpu_process_for_browser, | 52 base::ProcessHandle gpu_process_for_browser, |
53 const content::GPUInfo& gpu_info); | 53 const content::GPUInfo& gpu_info); |
54 void CreateCommandBufferCallback(IPC::Message* reply, int32 route_id); | 54 void CreateCommandBufferCallback(IPC::Message* reply, int32 route_id); |
55 | 55 |
56 int gpu_host_id_; | 56 int gpu_host_id_; |
57 int render_process_id_; | 57 int render_process_id_; |
58 | 58 |
59 scoped_refptr<RenderWidgetHelper> render_widget_helper_; | 59 scoped_refptr<RenderWidgetHelper> render_widget_helper_; |
60 | 60 |
61 DISALLOW_COPY_AND_ASSIGN(GpuMessageFilter); | 61 DISALLOW_COPY_AND_ASSIGN(GpuMessageFilter); |
62 }; | 62 }; |
63 | 63 |
64 #endif // CONTENT_BROWSER_RENDERER_HOST_GPU_MESSAGE_FILTER_H_ | 64 #endif // CONTENT_BROWSER_RENDERER_HOST_GPU_MESSAGE_FILTER_H_ |
OLD | NEW |