Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(556)

Unified Diff: content/gpu/gpu_child_thread.cc

Issue 2723013004: gpu: Replace more chrome ipc with mojom API. (Closed)
Patch Set: tot merge Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/gpu/gpu_child_thread.h ('k') | content/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/gpu_child_thread.cc
diff --git a/content/gpu/gpu_child_thread.cc b/content/gpu/gpu_child_thread.cc
index e1e5fd48a5c5b0595fcd337386837eb9ccaf6901..4d8a952ff3dc7bc0d7ec80c3f06e46d2dfbf5dd9 100644
--- a/content/gpu/gpu_child_thread.cc
+++ b/content/gpu/gpu_child_thread.cc
@@ -51,7 +51,6 @@
#endif
#if defined(OS_ANDROID)
-#include "base/android/throw_uncaught_exception.h"
#include "media/base/android/media_client_android.h"
#endif
@@ -249,12 +248,6 @@ bool GpuChildThread::OnControlMessageReceived(const IPC::Message& msg) {
IPC_BEGIN_MESSAGE_MAP(GpuChildThread, msg)
IPC_MESSAGE_HANDLER(GpuMsg_Finalize, OnFinalize)
IPC_MESSAGE_HANDLER(GpuMsg_CollectGraphicsInfo, OnCollectGraphicsInfo)
- IPC_MESSAGE_HANDLER(GpuMsg_Clean, OnClean)
- IPC_MESSAGE_HANDLER(GpuMsg_Crash, OnCrash)
- IPC_MESSAGE_HANDLER(GpuMsg_Hang, OnHang)
-#if defined(OS_ANDROID)
- IPC_MESSAGE_HANDLER(GpuMsg_JavaCrash, OnJavaCrash)
-#endif
IPC_MESSAGE_HANDLER(GpuMsg_GpuSwitched, OnGpuSwitched)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
@@ -413,33 +406,6 @@ void GpuChildThread::OnCollectGraphicsInfo() {
#endif // OS_WIN
}
-void GpuChildThread::OnClean() {
- DVLOG(1) << "GPU: Removing all contexts";
- if (gpu_channel_manager())
- gpu_channel_manager()->DestroyAllChannels();
-}
-
-void GpuChildThread::OnCrash() {
- DVLOG(1) << "GPU: Simulating GPU crash";
- // Good bye, cruel world.
- volatile int* it_s_the_end_of_the_world_as_we_know_it = NULL;
- *it_s_the_end_of_the_world_as_we_know_it = 0xdead;
-}
-
-void GpuChildThread::OnHang() {
- DVLOG(1) << "GPU: Simulating GPU hang";
- for (;;) {
- // Do not sleep here. The GPU watchdog timer tracks the amount of user
- // time this thread is using and it doesn't use much while calling Sleep.
- }
-}
-
-#if defined(OS_ANDROID)
-void GpuChildThread::OnJavaCrash() {
- base::android::ThrowUncaughtException();
-}
-#endif
-
void GpuChildThread::OnGpuSwitched() {
DVLOG(1) << "GPU: GPU has switched";
// Notify observers in the GPU process.
« no previous file with comments | « content/gpu/gpu_child_thread.h ('k') | content/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698