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 "content/browser/browser_message_filter.h" | 9 #include "content/browser/browser_message_filter.h" |
10 #include "content/common/gpu_process_launch_causes.h" | 10 #include "content/common/gpu_process_launch_causes.h" |
| 11 #include "ui/gfx/native_widget_types.h" |
11 | 12 |
12 class GpuProcessHost; | 13 class GpuProcessHost; |
13 class GpuProcessHostUIShim; | 14 class GpuProcessHostUIShim; |
14 struct GPUCreateCommandBufferConfig; | 15 struct GPUCreateCommandBufferConfig; |
15 struct GPUInfo; | 16 struct GPUInfo; |
16 | 17 |
17 namespace IPC { | 18 namespace IPC { |
18 struct ChannelHandle; | 19 struct ChannelHandle; |
19 } | 20 } |
20 | 21 |
(...skipping 14 matching lines...) Expand all Loading... |
35 | 36 |
36 private: | 37 private: |
37 friend class BrowserThread; | 38 friend class BrowserThread; |
38 friend class DeleteTask<GpuMessageFilter>; | 39 friend class DeleteTask<GpuMessageFilter>; |
39 virtual ~GpuMessageFilter(); | 40 virtual ~GpuMessageFilter(); |
40 | 41 |
41 // Message handlers called on the browser IO thread: | 42 // Message handlers called on the browser IO thread: |
42 void OnEstablishGpuChannel(content::CauseForGpuLaunch); | 43 void OnEstablishGpuChannel(content::CauseForGpuLaunch); |
43 void OnSynchronizeGpu(IPC::Message* reply); | 44 void OnSynchronizeGpu(IPC::Message* reply); |
44 void OnCreateViewCommandBuffer( | 45 void OnCreateViewCommandBuffer( |
| 46 gfx::PluginWindowHandle compositing_surface, |
45 int32 render_view_id, | 47 int32 render_view_id, |
46 const GPUCreateCommandBufferConfig& init_params, | 48 const GPUCreateCommandBufferConfig& init_params, |
47 IPC::Message* reply); | 49 IPC::Message* reply); |
48 | 50 |
49 int gpu_host_id_; | 51 int gpu_host_id_; |
50 int render_process_id_; | 52 int render_process_id_; |
51 | 53 |
52 DISALLOW_COPY_AND_ASSIGN(GpuMessageFilter); | 54 DISALLOW_COPY_AND_ASSIGN(GpuMessageFilter); |
53 }; | 55 }; |
54 | 56 |
55 #endif // CONTENT_BROWSER_RENDERER_HOST_GPU_MESSAGE_FILTER_H_ | 57 #endif // CONTENT_BROWSER_RENDERER_HOST_GPU_MESSAGE_FILTER_H_ |
OLD | NEW |