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

Unified Diff: content/gpu/gpu_child_thread.cc

Issue 2723163002: gpu: Replace more chrome ipc with mojom api. (Closed)
Patch Set: . 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') | services/ui/gpu/DEPS » ('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 da3646ab674dc4a60753af39cbad055cd753c567..e1e5fd48a5c5b0595fcd337386837eb9ccaf6901 100644
--- a/content/gpu/gpu_child_thread.cc
+++ b/content/gpu/gpu_child_thread.cc
@@ -53,7 +53,6 @@
#if defined(OS_ANDROID)
#include "base/android/throw_uncaught_exception.h"
#include "media/base/android/media_client_android.h"
-#include "media/gpu/avda_codec_allocator.h"
#endif
namespace content {
@@ -269,14 +268,7 @@ bool GpuChildThread::OnMessageReceived(const IPC::Message& msg) {
bool handled = true;
IPC_BEGIN_MESSAGE_MAP(GpuChildThread, msg)
- IPC_MESSAGE_HANDLER(GpuMsg_CloseChannel, OnCloseChannel)
IPC_MESSAGE_HANDLER(GpuMsg_DestroyGpuMemoryBuffer, OnDestroyGpuMemoryBuffer)
- IPC_MESSAGE_HANDLER(GpuMsg_LoadedShader, OnLoadedShader)
-#if defined(OS_ANDROID)
- IPC_MESSAGE_HANDLER(GpuMsg_WakeUpGpu, OnWakeUpGpu);
- IPC_MESSAGE_HANDLER(GpuMsg_DestroyingVideoSurface,
- OnDestroyingVideoSurface);
-#endif
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
if (handled)
@@ -455,16 +447,6 @@ void GpuChildThread::OnGpuSwitched() {
ui::GpuSwitchingManager::GetInstance()->NotifyGpuSwitched();
}
-void GpuChildThread::OnCloseChannel(int32_t client_id) {
- if (gpu_channel_manager())
- gpu_channel_manager()->RemoveChannel(client_id);
-}
-
-void GpuChildThread::OnLoadedShader(const std::string& shader) {
- if (gpu_channel_manager())
- gpu_channel_manager()->PopulateShaderCache(shader);
-}
-
void GpuChildThread::OnDestroyGpuMemoryBuffer(
gfx::GpuMemoryBufferId id,
int client_id,
@@ -473,18 +455,6 @@ void GpuChildThread::OnDestroyGpuMemoryBuffer(
gpu_channel_manager()->DestroyGpuMemoryBuffer(id, client_id, sync_token);
}
-#if defined(OS_ANDROID)
-void GpuChildThread::OnWakeUpGpu() {
- if (gpu_channel_manager())
- gpu_channel_manager()->WakeUpGpu();
-}
-
-void GpuChildThread::OnDestroyingVideoSurface(int surface_id) {
- media::AVDACodecAllocator::Instance()->OnSurfaceDestroyed(surface_id);
- Send(new GpuHostMsg_DestroyingVideoSurfaceAck(surface_id));
-}
-#endif
-
void GpuChildThread::BindServiceFactoryRequest(
service_manager::mojom::ServiceFactoryRequest request) {
DVLOG(1) << "GPU: Binding service_manager::mojom::ServiceFactoryRequest";
« no previous file with comments | « content/gpu/gpu_child_thread.h ('k') | services/ui/gpu/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698