| 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.h" | 5 #include "gpu/ipc/service/gpu_channel.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #if defined(OS_WIN) | 9 #if defined(OS_WIN) |
| 10 #include <windows.h> | 10 #include <windows.h> |
| (...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 570 if (message.is_sync()) { | 570 if (message.is_sync()) { |
| 571 IPC::Message* reply = IPC::SyncMessage::GenerateReply(&message); | 571 IPC::Message* reply = IPC::SyncMessage::GenerateReply(&message); |
| 572 reply->set_reply_error(); | 572 reply->set_reply_error(); |
| 573 Send(reply); | 573 Send(reply); |
| 574 } | 574 } |
| 575 return true; | 575 return true; |
| 576 } | 576 } |
| 577 | 577 |
| 578 GpuChannel::GpuChannel(GpuChannelManager* gpu_channel_manager, | 578 GpuChannel::GpuChannel(GpuChannelManager* gpu_channel_manager, |
| 579 SyncPointManager* sync_point_manager, | 579 SyncPointManager* sync_point_manager, |
| 580 GpuWatchdog* watchdog, | 580 GpuWatchdogThread* watchdog, |
| 581 gl::GLShareGroup* share_group, | 581 gl::GLShareGroup* share_group, |
| 582 gles2::MailboxManager* mailbox, | 582 gles2::MailboxManager* mailbox, |
| 583 PreemptionFlag* preempting_flag, | 583 PreemptionFlag* preempting_flag, |
| 584 PreemptionFlag* preempted_flag, | 584 PreemptionFlag* preempted_flag, |
| 585 base::SingleThreadTaskRunner* task_runner, | 585 base::SingleThreadTaskRunner* task_runner, |
| 586 base::SingleThreadTaskRunner* io_task_runner, | 586 base::SingleThreadTaskRunner* io_task_runner, |
| 587 int32_t client_id, | 587 int32_t client_id, |
| 588 uint64_t client_tracing_id, | 588 uint64_t client_tracing_id, |
| 589 bool allow_view_command_buffers, | 589 bool allow_view_command_buffers, |
| 590 bool allow_real_time_streams) | 590 bool allow_real_time_streams) |
| (...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1062 | 1062 |
| 1063 return manager->gpu_memory_buffer_factory() | 1063 return manager->gpu_memory_buffer_factory() |
| 1064 ->AsImageFactory() | 1064 ->AsImageFactory() |
| 1065 ->CreateImageForGpuMemoryBuffer(handle, size, format, internalformat, | 1065 ->CreateImageForGpuMemoryBuffer(handle, size, format, internalformat, |
| 1066 client_id_, surface_handle); | 1066 client_id_, surface_handle); |
| 1067 } | 1067 } |
| 1068 } | 1068 } |
| 1069 } | 1069 } |
| 1070 | 1070 |
| 1071 } // namespace gpu | 1071 } // namespace gpu |
| OLD | NEW |