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

Side by Side Diff: content/renderer/gpu/gpu_video_decode_accelerator_host.cc

Issue 8171015: Rename RenderThread to RenderThreadImpl (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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
« no previous file with comments | « content/renderer/gpu/gpu_channel_host.cc ('k') | content/renderer/gpu/renderer_gl_context.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "content/renderer/gpu/gpu_video_decode_accelerator_host.h" 5 #include "content/renderer/gpu/gpu_video_decode_accelerator_host.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/task.h" 10 #include "base/task.h"
11 #include "content/common/gpu/gpu_messages.h" 11 #include "content/common/gpu/gpu_messages.h"
12 #include "content/common/view_messages.h" 12 #include "content/common/view_messages.h"
13 #include "content/renderer/gpu/gpu_channel_host.h" 13 #include "content/renderer/gpu/gpu_channel_host.h"
14 #include "content/renderer/render_thread.h" 14 #include "content/renderer/render_thread_impl.h"
15 #include "ipc/ipc_message_macros.h" 15 #include "ipc/ipc_message_macros.h"
16 #include "ipc/ipc_message_utils.h" 16 #include "ipc/ipc_message_utils.h"
17 17
18 using media::VideoDecodeAccelerator; 18 using media::VideoDecodeAccelerator;
19 19
20 GpuVideoDecodeAcceleratorHost::GpuVideoDecodeAcceleratorHost( 20 GpuVideoDecodeAcceleratorHost::GpuVideoDecodeAcceleratorHost(
21 GpuChannelHost* channel, 21 GpuChannelHost* channel,
22 int32 decoder_route_id, 22 int32 decoder_route_id,
23 VideoDecodeAccelerator::Client* client) 23 VideoDecodeAccelerator::Client* client)
24 : channel_(channel), 24 : channel_(channel),
25 decoder_route_id_(decoder_route_id), 25 decoder_route_id_(decoder_route_id),
26 client_(client) { 26 client_(client) {
27 DCHECK(channel_); 27 DCHECK(channel_);
28 DCHECK(client_); 28 DCHECK(client_);
29 DCHECK(RenderThread::current()); 29 DCHECK(RenderThreadImpl::current());
30 DCHECK_EQ(RenderThread::current()->message_loop(), MessageLoop::current());
31 } 30 }
32 31
33 GpuVideoDecodeAcceleratorHost::~GpuVideoDecodeAcceleratorHost() {} 32 GpuVideoDecodeAcceleratorHost::~GpuVideoDecodeAcceleratorHost() {}
34 33
35 void GpuVideoDecodeAcceleratorHost::OnChannelError() { 34 void GpuVideoDecodeAcceleratorHost::OnChannelError() {
36 channel_ = NULL; 35 channel_ = NULL;
37 } 36 }
38 37
39 bool GpuVideoDecodeAcceleratorHost::OnMessageReceived(const IPC::Message& msg) { 38 bool GpuVideoDecodeAcceleratorHost::OnMessageReceived(const IPC::Message& msg) {
40 DCHECK(CalledOnValidThread()); 39 DCHECK(CalledOnValidThread());
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 client_->NotifyEndOfStream(); 172 client_->NotifyEndOfStream();
174 } 173 }
175 174
176 void GpuVideoDecodeAcceleratorHost::OnErrorNotification(uint32 error) { 175 void GpuVideoDecodeAcceleratorHost::OnErrorNotification(uint32 error) {
177 DCHECK(CalledOnValidThread()); 176 DCHECK(CalledOnValidThread());
178 if (!client_) 177 if (!client_)
179 return; 178 return;
180 client_->NotifyError( 179 client_->NotifyError(
181 static_cast<media::VideoDecodeAccelerator::Error>(error)); 180 static_cast<media::VideoDecodeAccelerator::Error>(error));
182 } 181 }
OLDNEW
« no previous file with comments | « content/renderer/gpu/gpu_channel_host.cc ('k') | content/renderer/gpu/renderer_gl_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698