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

Unified Diff: content/common/gpu/gpu_channel.cc

Issue 185403020: Make VEA client of command buffer; move sync. IPC to VDA/VEA::Initialize() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 7da5b6ec Rebase. Created 6 years, 9 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/common/gpu/gpu_channel.h ('k') | content/common/gpu/gpu_command_buffer_stub.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_channel.cc
diff --git a/content/common/gpu/gpu_channel.cc b/content/common/gpu/gpu_channel.cc
index 9b011508409e90758979ba000ef8755a1535dfda..915c379a8add2651626c5426127924d5b365000b 100644
--- a/content/common/gpu/gpu_channel.cc
+++ b/content/common/gpu/gpu_channel.cc
@@ -20,7 +20,6 @@
#include "content/common/gpu/devtools_gpu_agent.h"
#include "content/common/gpu/gpu_channel_manager.h"
#include "content/common/gpu/gpu_messages.h"
-#include "content/common/gpu/media/gpu_video_encode_accelerator.h"
#include "content/common/gpu/sync_point_manager.h"
#include "content/public/common/content_switches.h"
#include "gpu/command_buffer/common/mailbox.h"
@@ -704,9 +703,6 @@ bool GpuChannel::OnControlMessageReceived(const IPC::Message& msg) {
OnCreateOffscreenCommandBuffer)
IPC_MESSAGE_HANDLER(GpuChannelMsg_DestroyCommandBuffer,
OnDestroyCommandBuffer)
- IPC_MESSAGE_HANDLER(GpuChannelMsg_CreateVideoEncoder, OnCreateVideoEncoder)
- IPC_MESSAGE_HANDLER(GpuChannelMsg_DestroyVideoEncoder,
- OnDestroyVideoEncoder)
IPC_MESSAGE_HANDLER(GpuChannelMsg_DevToolsStartEventsRecording,
OnDevToolsStartEventsRecording)
IPC_MESSAGE_HANDLER(GpuChannelMsg_DevToolsStopEventsRecording,
@@ -841,26 +837,6 @@ void GpuChannel::OnDestroyCommandBuffer(int32 route_id) {
}
}
-void GpuChannel::OnCreateVideoEncoder(int32* route_id) {
- TRACE_EVENT0("gpu", "GpuChannel::OnCreateVideoEncoder");
-
- *route_id = GenerateRouteID();
- GpuVideoEncodeAccelerator* encoder =
- new GpuVideoEncodeAccelerator(this, *route_id);
- router_.AddRoute(*route_id, encoder);
- video_encoders_.AddWithID(encoder, *route_id);
-}
-
-void GpuChannel::OnDestroyVideoEncoder(int32 route_id) {
- TRACE_EVENT1(
- "gpu", "GpuChannel::OnDestroyVideoEncoder", "route_id", route_id);
- GpuVideoEncodeAccelerator* encoder = video_encoders_.Lookup(route_id);
- if (!encoder)
- return;
- router_.RemoveRoute(route_id);
- video_encoders_.Remove(route_id);
-}
-
void GpuChannel::OnDevToolsStartEventsRecording(int32* route_id) {
devtools_gpu_agent_->StartEventsRecording(route_id);
}
« no previous file with comments | « content/common/gpu/gpu_channel.h ('k') | content/common/gpu/gpu_command_buffer_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698