| 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 #include "gpu/ipc/service/gpu_channel_manager.h" | 5 #include "gpu/ipc/service/gpu_channel_manager.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 base::WaitableEvent* shutdown_event, | 51 base::WaitableEvent* shutdown_event, |
| 52 SyncPointManager* sync_point_manager, | 52 SyncPointManager* sync_point_manager, |
| 53 GpuMemoryBufferFactory* gpu_memory_buffer_factory) | 53 GpuMemoryBufferFactory* gpu_memory_buffer_factory) |
| 54 : task_runner_(task_runner), | 54 : task_runner_(task_runner), |
| 55 io_task_runner_(io_task_runner), | 55 io_task_runner_(io_task_runner), |
| 56 gpu_preferences_(gpu_preferences), | 56 gpu_preferences_(gpu_preferences), |
| 57 gpu_driver_bug_workarounds_(base::CommandLine::ForCurrentProcess()), | 57 gpu_driver_bug_workarounds_(base::CommandLine::ForCurrentProcess()), |
| 58 delegate_(delegate), | 58 delegate_(delegate), |
| 59 watchdog_(watchdog), | 59 watchdog_(watchdog), |
| 60 shutdown_event_(shutdown_event), | 60 shutdown_event_(shutdown_event), |
| 61 share_group_(new gl::GLShareGroup), | 61 share_group_(new gl::GLShareGroup()), |
| 62 mailbox_manager_(gles2::MailboxManager::Create(gpu_preferences)), | 62 mailbox_manager_(gles2::MailboxManager::Create(gpu_preferences)), |
| 63 gpu_memory_manager_(this), | 63 gpu_memory_manager_(this), |
| 64 sync_point_manager_(sync_point_manager), | 64 sync_point_manager_(sync_point_manager), |
| 65 sync_point_client_waiter_( | 65 sync_point_client_waiter_( |
| 66 sync_point_manager->CreateSyncPointClientWaiter()), | 66 sync_point_manager->CreateSyncPointClientWaiter()), |
| 67 gpu_memory_buffer_factory_(gpu_memory_buffer_factory), | 67 gpu_memory_buffer_factory_(gpu_memory_buffer_factory), |
| 68 exiting_for_lost_context_(false), | 68 exiting_for_lost_context_(false), |
| 69 weak_factory_(this) { | 69 weak_factory_(this) { |
| 70 DCHECK(task_runner); | 70 DCHECK(task_runner); |
| 71 DCHECK(io_task_runner); | 71 DCHECK(io_task_runner); |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 } | 283 } |
| 284 } | 284 } |
| 285 if (!stub || !stub->decoder()->MakeCurrent()) | 285 if (!stub || !stub->decoder()->MakeCurrent()) |
| 286 return; | 286 return; |
| 287 glFinish(); | 287 glFinish(); |
| 288 DidAccessGpu(); | 288 DidAccessGpu(); |
| 289 } | 289 } |
| 290 #endif | 290 #endif |
| 291 | 291 |
| 292 } // namespace gpu | 292 } // namespace gpu |
| OLD | NEW |