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

Side by Side Diff: media/filters/gpu_video_decoder.cc

Issue 1731403002: media: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « media/filters/gpu_video_decoder.h ('k') | media/filters/video_renderer_algorithm.h » ('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) 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
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
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
OLDNEW
« no previous file with comments | « media/filters/gpu_video_decoder.h ('k') | media/filters/video_renderer_algorithm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698