| OLD | NEW |
| 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_video_service_host.h" | 5 #include "content/renderer/gpu/gpu_video_service_host.h" |
| 6 | 6 |
| 7 #include "content/common/gpu/gpu_messages.h" | 7 #include "content/common/gpu/gpu_messages.h" |
| 8 #include "content/renderer/gpu_video_decode_accelerator_host.h" | 8 #include "content/renderer/gpu/gpu_video_decode_accelerator_host.h" |
| 9 #include "content/renderer/render_thread.h" | 9 #include "content/renderer/render_thread.h" |
| 10 #include "media/video/video_decode_accelerator.h" | 10 #include "media/video/video_decode_accelerator.h" |
| 11 | 11 |
| 12 GpuVideoServiceHost::GpuVideoServiceHost() | 12 GpuVideoServiceHost::GpuVideoServiceHost() |
| 13 : channel_(NULL), | 13 : channel_(NULL), |
| 14 next_decoder_host_id_(0) { | 14 next_decoder_host_id_(0) { |
| 15 } | 15 } |
| 16 | 16 |
| 17 GpuVideoServiceHost::~GpuVideoServiceHost() { | 17 GpuVideoServiceHost::~GpuVideoServiceHost() { |
| 18 } | 18 } |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 return NULL; | 75 return NULL; |
| 76 } | 76 } |
| 77 | 77 |
| 78 GpuVideoDecodeAcceleratorHost* GpuVideoServiceHost::CreateVideoAccelerator( | 78 GpuVideoDecodeAcceleratorHost* GpuVideoServiceHost::CreateVideoAccelerator( |
| 79 media::VideoDecodeAccelerator::Client* client) { | 79 media::VideoDecodeAccelerator::Client* client) { |
| 80 base::AutoLock auto_lock(lock_); | 80 base::AutoLock auto_lock(lock_); |
| 81 DCHECK(channel_); | 81 DCHECK(channel_); |
| 82 return new GpuVideoDecodeAcceleratorHost( | 82 return new GpuVideoDecodeAcceleratorHost( |
| 83 &router_, channel_, next_decoder_host_id_++, client); | 83 &router_, channel_, next_decoder_host_id_++, client); |
| 84 } | 84 } |
| OLD | NEW |