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

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

Issue 9270025: Remove renderer dependencies from the GPU client classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add overrides Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/common/gpu/gpu_messages.h" 10 #include "content/common/gpu/gpu_messages.h"
11 #include "content/common/view_messages.h" 11 #include "content/common/view_messages.h"
12 #include "content/renderer/gpu/gpu_channel_host.h" 12 #include "content/renderer/gpu/gpu_channel_host.h"
13 #include "content/renderer/render_thread_impl.h"
14 #include "ipc/ipc_message_macros.h" 13 #include "ipc/ipc_message_macros.h"
15 #include "ipc/ipc_message_utils.h" 14 #include "ipc/ipc_message_utils.h"
16 15
17 using media::VideoDecodeAccelerator; 16 using media::VideoDecodeAccelerator;
18 17
19 GpuVideoDecodeAcceleratorHost::GpuVideoDecodeAcceleratorHost( 18 GpuVideoDecodeAcceleratorHost::GpuVideoDecodeAcceleratorHost(
20 GpuChannelHost* channel, 19 GpuChannelHost* channel,
21 int32 decoder_route_id, 20 int32 decoder_route_id,
22 VideoDecodeAccelerator::Client* client) 21 VideoDecodeAccelerator::Client* client)
23 : channel_(channel), 22 : channel_(channel),
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 client_->NotifyResetDone(); 162 client_->NotifyResetDone();
164 } 163 }
165 164
166 void GpuVideoDecodeAcceleratorHost::OnErrorNotification(uint32 error) { 165 void GpuVideoDecodeAcceleratorHost::OnErrorNotification(uint32 error) {
167 DCHECK(CalledOnValidThread()); 166 DCHECK(CalledOnValidThread());
168 if (!client_) 167 if (!client_)
169 return; 168 return;
170 client_->NotifyError( 169 client_->NotifyError(
171 static_cast<media::VideoDecodeAccelerator::Error>(error)); 170 static_cast<media::VideoDecodeAccelerator::Error>(error));
172 } 171 }
OLDNEW
« no previous file with comments | « content/renderer/gpu/gpu_channel_host.cc ('k') | content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698