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_GPU_GPU_CHANNEL_MANAGER_H_ | 5 #ifndef CONTENT_GPU_GPU_CHANNEL_MANAGER_H_ |
6 #define CONTENT_GPU_GPU_CHANNEL_MANAGER_H_ | 6 #define CONTENT_GPU_GPU_CHANNEL_MANAGER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 void LoseAllContexts(); | 61 void LoseAllContexts(); |
62 | 62 |
63 ScopedRunnableMethodFactory<GpuChannelManager> method_factory_; | 63 ScopedRunnableMethodFactory<GpuChannelManager> method_factory_; |
64 | 64 |
65 private: | 65 private: |
66 // Message handlers. | 66 // Message handlers. |
67 void OnEstablishChannel(int renderer_id); | 67 void OnEstablishChannel(int renderer_id); |
68 void OnCloseChannel(const IPC::ChannelHandle& channel_handle); | 68 void OnCloseChannel(const IPC::ChannelHandle& channel_handle); |
69 void OnVisibilityChanged( | 69 void OnVisibilityChanged( |
70 int32 render_view_id, int32 renderer_id, bool visible); | 70 int32 render_view_id, int32 renderer_id, bool visible); |
71 void OnSynchronize(); | |
72 void OnCreateViewCommandBuffer( | 71 void OnCreateViewCommandBuffer( |
73 gfx::PluginWindowHandle window, | 72 gfx::PluginWindowHandle window, |
74 int32 render_view_id, | 73 int32 render_view_id, |
75 int32 renderer_id, | 74 int32 renderer_id, |
76 const GPUCreateCommandBufferConfig& init_params); | 75 const GPUCreateCommandBufferConfig& init_params); |
77 void OnResizeViewACK(int32 renderer_id, int32 command_buffer_route_id); | 76 void OnResizeViewACK(int32 renderer_id, int32 command_buffer_route_id); |
78 #if defined(OS_MACOSX) | 77 #if defined(OS_MACOSX) |
79 void OnAcceleratedSurfaceBuffersSwappedACK( | 78 void OnAcceleratedSurfaceBuffersSwappedACK( |
80 int renderer_id, int32 route_id, uint64 swap_buffers_count); | 79 int renderer_id, int32 route_id, uint64 swap_buffers_count); |
81 void OnDestroyCommandBuffer(int renderer_id, int32 renderer_view_id); | 80 void OnDestroyCommandBuffer(int renderer_id, int32 renderer_view_id); |
(...skipping 13 matching lines...) Expand all Loading... |
95 // one channel for each renderer process that has connected to this GPU | 94 // one channel for each renderer process that has connected to this GPU |
96 // process. | 95 // process. |
97 typedef base::hash_map<int, scoped_refptr<GpuChannel> > GpuChannelMap; | 96 typedef base::hash_map<int, scoped_refptr<GpuChannel> > GpuChannelMap; |
98 GpuChannelMap gpu_channels_; | 97 GpuChannelMap gpu_channels_; |
99 GpuWatchdog* watchdog_; | 98 GpuWatchdog* watchdog_; |
100 | 99 |
101 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); | 100 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); |
102 }; | 101 }; |
103 | 102 |
104 #endif // CONTENT_GPU_GPU_CHANNEL_MANAGER_H_ | 103 #endif // CONTENT_GPU_GPU_CHANNEL_MANAGER_H_ |
OLD | NEW |