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/gpu/gpu_child_thread.h" | 5 #include "content/gpu/gpu_child_thread.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 #include "ui/ozone/public/ozone_platform.h" | 50 #include "ui/ozone/public/ozone_platform.h" |
51 #endif | 51 #endif |
52 | 52 |
53 #if defined(OS_ANDROID) | 53 #if defined(OS_ANDROID) |
54 #include "media/base/android/media_client_android.h" | 54 #include "media/base/android/media_client_android.h" |
55 #endif | 55 #endif |
56 | 56 |
57 namespace content { | 57 namespace content { |
58 namespace { | 58 namespace { |
59 | 59 |
60 static base::LazyInstance<scoped_refptr<ThreadSafeSender> > | 60 static base::LazyInstance<scoped_refptr<ThreadSafeSender>>::DestructorAtExit |
61 g_thread_safe_sender = LAZY_INSTANCE_INITIALIZER; | 61 g_thread_safe_sender = LAZY_INSTANCE_INITIALIZER; |
62 | 62 |
63 bool GpuProcessLogMessageHandler(int severity, | 63 bool GpuProcessLogMessageHandler(int severity, |
64 const char* file, int line, | 64 const char* file, int line, |
65 size_t message_start, | 65 size_t message_start, |
66 const std::string& str) { | 66 const std::string& str) { |
67 std::string header = str.substr(0, message_start); | 67 std::string header = str.substr(0, message_start); |
68 std::string message = str.substr(message_start); | 68 std::string message = str.substr(message_start); |
69 | 69 |
70 g_thread_safe_sender.Get()->Send( | 70 g_thread_safe_sender.Get()->Send( |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 | 423 |
424 void GpuChildThread::BindServiceFactoryRequest( | 424 void GpuChildThread::BindServiceFactoryRequest( |
425 service_manager::mojom::ServiceFactoryRequest request) { | 425 service_manager::mojom::ServiceFactoryRequest request) { |
426 DVLOG(1) << "GPU: Binding service_manager::mojom::ServiceFactoryRequest"; | 426 DVLOG(1) << "GPU: Binding service_manager::mojom::ServiceFactoryRequest"; |
427 DCHECK(service_factory_); | 427 DCHECK(service_factory_); |
428 service_factory_bindings_.AddBinding(service_factory_.get(), | 428 service_factory_bindings_.AddBinding(service_factory_.get(), |
429 std::move(request)); | 429 std::move(request)); |
430 } | 430 } |
431 | 431 |
432 } // namespace content | 432 } // namespace content |
OLD | NEW |