OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "services/ui/gpu/gpu_service.h" | 5 #include "services/ui/gpu/gpu_service.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/debug/crash_logging.h" | 8 #include "base/debug/crash_logging.h" |
9 #include "base/memory/shared_memory.h" | 9 #include "base/memory/shared_memory.h" |
10 #include "base/threading/thread_task_runner_handle.h" | 10 #include "base/threading/thread_task_runner_handle.h" |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 } | 258 } |
259 | 259 |
260 void GpuService::ThrowJavaException() { | 260 void GpuService::ThrowJavaException() { |
261 #if defined(OS_ANDROID) | 261 #if defined(OS_ANDROID) |
262 base::android::ThrowUncaughtException(); | 262 base::android::ThrowUncaughtException(); |
263 #else | 263 #else |
264 NOTREACHED() << "Java exception not supported on this platform."; | 264 NOTREACHED() << "Java exception not supported on this platform."; |
265 #endif | 265 #endif |
266 } | 266 } |
267 | 267 |
| 268 void GpuService::Stop(const StopCallback& callback) { |
| 269 base::MessageLoop::current()->QuitWhenIdle(); |
| 270 callback.Run(); |
| 271 } |
| 272 |
268 } // namespace ui | 273 } // namespace ui |
OLD | NEW |