| 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 "content/common/gpu/client/gpu_channel_host.h" | 5 #include "content/common/gpu/client/gpu_channel_host.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/atomic_sequence_num.h" | 10 #include "base/atomic_sequence_num.h" |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/location.h" | 12 #include "base/location.h" |
| 13 #include "base/posix/eintr_wrapper.h" | 13 #include "base/posix/eintr_wrapper.h" |
| 14 #include "base/profiler/scoped_tracker.h" | 14 #include "base/profiler/scoped_tracker.h" |
| 15 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
| 16 #include "base/thread_task_runner_handle.h" | 16 #include "base/thread_task_runner_handle.h" |
| 17 #include "base/threading/thread_restrictions.h" | 17 #include "base/threading/thread_restrictions.h" |
| 18 #include "base/trace_event/trace_event.h" | 18 #include "base/trace_event/trace_event.h" |
| 19 #include "build/build_config.h" | 19 #include "build/build_config.h" |
| 20 #include "content/common/gpu/client/command_buffer_proxy_impl.h" | 20 #include "content/common/gpu/client/command_buffer_proxy_impl.h" |
| 21 #include "content/common/gpu/client/gpu_jpeg_decode_accelerator_host.h" | 21 #include "content/common/gpu/client/gpu_jpeg_decode_accelerator_host.h" |
| 22 #include "content/common/gpu/gpu_messages.h" | 22 #include "content/common/gpu/gpu_messages.h" |
| 23 #include "ipc/ipc_sync_message_filter.h" | 23 #include "ipc/ipc_sync_message_filter.h" |
| 24 #include "url/gurl.h" | 24 #include "url/gurl.h" |
| 25 | 25 |
| 26 #if defined(OS_WIN) || defined(OS_MACOSX) | |
| 27 #include "content/public/common/sandbox_init.h" | |
| 28 #endif | |
| 29 | |
| 30 using base::AutoLock; | 26 using base::AutoLock; |
| 31 | 27 |
| 32 namespace content { | 28 namespace content { |
| 33 namespace { | 29 namespace { |
| 34 | 30 |
| 35 // Global atomic to generate unique transfer buffer IDs. | 31 // Global atomic to generate unique transfer buffer IDs. |
| 36 base::StaticAtomicSequenceNumber g_next_transfer_buffer_id; | 32 base::StaticAtomicSequenceNumber g_next_transfer_buffer_id; |
| 37 | 33 |
| 38 } // namespace | 34 } // namespace |
| 39 | 35 |
| (...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 | 531 |
| 536 listeners_.clear(); | 532 listeners_.clear(); |
| 537 } | 533 } |
| 538 | 534 |
| 539 bool GpuChannelHost::MessageFilter::IsLost() const { | 535 bool GpuChannelHost::MessageFilter::IsLost() const { |
| 540 AutoLock lock(lock_); | 536 AutoLock lock(lock_); |
| 541 return lost_; | 537 return lost_; |
| 542 } | 538 } |
| 543 | 539 |
| 544 } // namespace content | 540 } // namespace content |
| OLD | NEW |