| 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/app/android/child_process_service.h" | 5 #include "content/app/android/child_process_service.h" |
| 6 | 6 |
| 7 #include <android/native_window_jni.h> | 7 #include <android/native_window_jni.h> |
| 8 #include <cpu-features.h> | 8 #include <cpu-features.h> |
| 9 | 9 |
| 10 #include "base/android/jni_array.h" | 10 #include "base/android/jni_array.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/posix/global_descriptors.h" | 12 #include "base/posix/global_descriptors.h" |
| 13 #include "content/child/child_process.h" |
| 14 #include "content/child/child_thread.h" |
| 13 #include "content/common/android/surface_texture_peer.h" | 15 #include "content/common/android/surface_texture_peer.h" |
| 14 #include "content/common/child_process.h" | |
| 15 #include "content/common/child_thread.h" | |
| 16 #include "content/common/gpu/gpu_surface_lookup.h" | 16 #include "content/common/gpu/gpu_surface_lookup.h" |
| 17 #include "content/public/app/android_library_loader_hooks.h" | 17 #include "content/public/app/android_library_loader_hooks.h" |
| 18 #include "content/public/common/content_descriptors.h" | 18 #include "content/public/common/content_descriptors.h" |
| 19 #include "ipc/ipc_descriptors.h" | 19 #include "ipc/ipc_descriptors.h" |
| 20 #include "jni/ChildProcessService_jni.h" | 20 #include "jni/ChildProcessService_jni.h" |
| 21 #include "ui/gl/android/scoped_java_surface.h" | 21 #include "ui/gl/android/scoped_java_surface.h" |
| 22 | 22 |
| 23 using base::android::AttachCurrentThread; | 23 using base::android::AttachCurrentThread; |
| 24 using base::android::CheckException; | 24 using base::android::CheckException; |
| 25 using base::android::JavaIntArrayToIntVector; | 25 using base::android::JavaIntArrayToIntVector; |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 ChildProcess* current_process = ChildProcess::current(); | 142 ChildProcess* current_process = ChildProcess::current(); |
| 143 if (!current_process) | 143 if (!current_process) |
| 144 return; | 144 return; |
| 145 ChildThread* main_child_thread = current_process->main_thread(); | 145 ChildThread* main_child_thread = current_process->main_thread(); |
| 146 if (main_child_thread && main_child_thread->message_loop()) | 146 if (main_child_thread && main_child_thread->message_loop()) |
| 147 main_child_thread->message_loop()->PostTask(FROM_HERE, | 147 main_child_thread->message_loop()->PostTask(FROM_HERE, |
| 148 base::Bind(&QuitMainThreadMessageLoop)); | 148 base::Bind(&QuitMainThreadMessageLoop)); |
| 149 } | 149 } |
| 150 | 150 |
| 151 } // namespace content | 151 } // namespace content |
| OLD | NEW |