| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ | 5 #ifndef CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ |
| 6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ | 6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferType type, | 125 void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferType type, |
| 126 gfx::GpuMemoryBufferId id, | 126 gfx::GpuMemoryBufferId id, |
| 127 int client_id); | 127 int client_id); |
| 128 void DestroyGpuMemoryBufferOnIO(gfx::GpuMemoryBufferType type, | 128 void DestroyGpuMemoryBufferOnIO(gfx::GpuMemoryBufferType type, |
| 129 gfx::GpuMemoryBufferId id, | 129 gfx::GpuMemoryBufferId id, |
| 130 int client_id); | 130 int client_id); |
| 131 void OnDestroyGpuMemoryBuffer(gfx::GpuMemoryBufferType type, | 131 void OnDestroyGpuMemoryBuffer(gfx::GpuMemoryBufferType type, |
| 132 gfx::GpuMemoryBufferId id, | 132 gfx::GpuMemoryBufferId id, |
| 133 int client_id, | 133 int client_id, |
| 134 int32 sync_point); | 134 int32 sync_point); |
| 135 void OnDeleteDefaultOffscreenSurface(); |
| 135 | 136 |
| 136 void OnLoseAllContexts(); | 137 void OnLoseAllContexts(); |
| 137 | 138 |
| 138 scoped_refptr<base::MessageLoopProxy> io_message_loop_; | 139 scoped_refptr<base::MessageLoopProxy> io_message_loop_; |
| 139 base::WaitableEvent* shutdown_event_; | 140 base::WaitableEvent* shutdown_event_; |
| 140 | 141 |
| 141 // Used to send and receive IPC messages from the browser process. | 142 // Used to send and receive IPC messages from the browser process. |
| 142 MessageRouter* const router_; | 143 MessageRouter* const router_; |
| 143 | 144 |
| 144 // These objects manage channels to individual renderer processes there is | 145 // These objects manage channels to individual renderer processes there is |
| (...skipping 17 matching lines...) Expand all Loading... |
| 162 // that any WeakPtrs to Controller are invalidated before its members | 163 // that any WeakPtrs to Controller are invalidated before its members |
| 163 // variable's destructors are executed, rendering them invalid. | 164 // variable's destructors are executed, rendering them invalid. |
| 164 base::WeakPtrFactory<GpuChannelManager> weak_factory_; | 165 base::WeakPtrFactory<GpuChannelManager> weak_factory_; |
| 165 | 166 |
| 166 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); | 167 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); |
| 167 }; | 168 }; |
| 168 | 169 |
| 169 } // namespace content | 170 } // namespace content |
| 170 | 171 |
| 171 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ | 172 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ |
| OLD | NEW |