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

Side by Side Diff: chrome/renderer/gpu_video_decoder_host.cc

Issue 6673003: Move GPU messages to content. I've also switched the IPC structs to use the ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/renderer/gpu_video_decoder_host.h" 5 #include "chrome/renderer/gpu_video_decoder_host.h"
6 6
7 #include "chrome/common/gpu_messages.h" 7 #include "content/common/gpu_messages.h"
8 #include "content/common/message_router.h"
8 #include "media/base/pipeline.h" 9 #include "media/base/pipeline.h"
9 #include "content/common/message_router.h"
10 #include "media/video/video_decode_context.h" 10 #include "media/video/video_decode_context.h"
11 11
12 GpuVideoDecoderHost::GpuVideoDecoderHost(MessageRouter* router, 12 GpuVideoDecoderHost::GpuVideoDecoderHost(MessageRouter* router,
13 IPC::Message::Sender* ipc_sender, 13 IPC::Message::Sender* ipc_sender,
14 int context_route_id, 14 int context_route_id,
15 int32 decoder_host_id) 15 int32 decoder_host_id)
16 : router_(router), 16 : router_(router),
17 ipc_sender_(ipc_sender), 17 ipc_sender_(ipc_sender),
18 context_route_id_(context_route_id), 18 context_route_id_(context_route_id),
19 message_loop_(NULL), 19 message_loop_(NULL),
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 } 390 }
391 391
392 DCHECK(found) << "Invalid video frame received"; 392 DCHECK(found) << "Invalid video frame received";
393 if (found && !ipc_sender_->Send( 393 if (found && !ipc_sender_->Send(
394 new GpuVideoDecoderMsg_ProduceVideoFrame(decoder_id_, frame_id))) { 394 new GpuVideoDecoderMsg_ProduceVideoFrame(decoder_id_, frame_id))) {
395 LOG(ERROR) << "GpuVideoDecoderMsg_ProduceVideoFrame failed"; 395 LOG(ERROR) << "GpuVideoDecoderMsg_ProduceVideoFrame failed";
396 } 396 }
397 } 397 }
398 398
399 DISABLE_RUNNABLE_METHOD_REFCOUNT(GpuVideoDecoderHost); 399 DISABLE_RUNNABLE_METHOD_REFCOUNT(GpuVideoDecoderHost);
OLDNEW
« no previous file with comments | « chrome/renderer/gpu_video_decoder_host.h ('k') | chrome/renderer/gpu_video_decoder_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698