OLD | NEW |
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 "media/filters/gpu_video_decoder.h" | 5 #include "media/filters/gpu_video_decoder.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 | 46 |
47 GpuVideoDecoder::SHMBuffer::~SHMBuffer() {} | 47 GpuVideoDecoder::SHMBuffer::~SHMBuffer() {} |
48 | 48 |
49 GpuVideoDecoder::PendingDecoderBuffer::PendingDecoderBuffer( | 49 GpuVideoDecoder::PendingDecoderBuffer::PendingDecoderBuffer( |
50 SHMBuffer* s, | 50 SHMBuffer* s, |
51 const scoped_refptr<DecoderBuffer>& b, | 51 const scoped_refptr<DecoderBuffer>& b, |
52 const DecodeCB& done_cb) | 52 const DecodeCB& done_cb) |
53 : shm_buffer(s), buffer(b), done_cb(done_cb) { | 53 : shm_buffer(s), buffer(b), done_cb(done_cb) { |
54 } | 54 } |
55 | 55 |
| 56 GpuVideoDecoder::PendingDecoderBuffer::PendingDecoderBuffer( |
| 57 const PendingDecoderBuffer& other) = default; |
| 58 |
56 GpuVideoDecoder::PendingDecoderBuffer::~PendingDecoderBuffer() {} | 59 GpuVideoDecoder::PendingDecoderBuffer::~PendingDecoderBuffer() {} |
57 | 60 |
58 GpuVideoDecoder::BufferData::BufferData(int32_t bbid, | 61 GpuVideoDecoder::BufferData::BufferData(int32_t bbid, |
59 base::TimeDelta ts, | 62 base::TimeDelta ts, |
60 const gfx::Rect& vr, | 63 const gfx::Rect& vr, |
61 const gfx::Size& ns) | 64 const gfx::Size& ns) |
62 : bitstream_buffer_id(bbid), | 65 : bitstream_buffer_id(bbid), |
63 timestamp(ts), | 66 timestamp(ts), |
64 visible_rect(vr), | 67 visible_rect(vr), |
65 natural_size(ns) {} | 68 natural_size(ns) {} |
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
705 } | 708 } |
706 return false; | 709 return false; |
707 } | 710 } |
708 | 711 |
709 void GpuVideoDecoder::DCheckGpuVideoAcceleratorFactoriesTaskRunnerIsCurrent() | 712 void GpuVideoDecoder::DCheckGpuVideoAcceleratorFactoriesTaskRunnerIsCurrent() |
710 const { | 713 const { |
711 DCHECK(factories_->GetTaskRunner()->BelongsToCurrentThread()); | 714 DCHECK(factories_->GetTaskRunner()->BelongsToCurrentThread()); |
712 } | 715 } |
713 | 716 |
714 } // namespace media | 717 } // namespace media |
OLD | NEW |