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

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

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, 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
« no previous file with comments | « media/cdm/player_tracker_impl.cc ('k') | media/filters/gpu_video_decoder.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) 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 #ifndef MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ 5 #ifndef MEDIA_FILTERS_GPU_VIDEO_DECODER_H_
6 #define MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ 6 #define MEDIA_FILTERS_GPU_VIDEO_DECODER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 ~SHMBuffer(); 95 ~SHMBuffer();
96 scoped_ptr<base::SharedMemory> shm; 96 scoped_ptr<base::SharedMemory> shm;
97 size_t size; 97 size_t size;
98 }; 98 };
99 99
100 // A SHMBuffer and the DecoderBuffer its data came from. 100 // A SHMBuffer and the DecoderBuffer its data came from.
101 struct PendingDecoderBuffer { 101 struct PendingDecoderBuffer {
102 PendingDecoderBuffer(SHMBuffer* s, 102 PendingDecoderBuffer(SHMBuffer* s,
103 const scoped_refptr<DecoderBuffer>& b, 103 const scoped_refptr<DecoderBuffer>& b,
104 const DecodeCB& done_cb); 104 const DecodeCB& done_cb);
105 PendingDecoderBuffer(const PendingDecoderBuffer& other);
105 ~PendingDecoderBuffer(); 106 ~PendingDecoderBuffer();
106 SHMBuffer* shm_buffer; 107 SHMBuffer* shm_buffer;
107 scoped_refptr<DecoderBuffer> buffer; 108 scoped_refptr<DecoderBuffer> buffer;
108 DecodeCB done_cb; 109 DecodeCB done_cb;
109 }; 110 };
110 111
111 typedef std::map<int32_t, PictureBuffer> PictureBufferMap; 112 typedef std::map<int32_t, PictureBuffer> PictureBufferMap;
112 113
113 void DeliverFrame(const scoped_refptr<VideoFrame>& frame); 114 void DeliverFrame(const scoped_refptr<VideoFrame>& frame);
114 115
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 // Bound to factories_->GetMessageLoop(). 223 // Bound to factories_->GetMessageLoop().
223 // NOTE: Weak pointers must be invalidated before all other member variables. 224 // NOTE: Weak pointers must be invalidated before all other member variables.
224 base::WeakPtrFactory<GpuVideoDecoder> weak_factory_; 225 base::WeakPtrFactory<GpuVideoDecoder> weak_factory_;
225 226
226 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); 227 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder);
227 }; 228 };
228 229
229 } // namespace media 230 } // namespace media
230 231
231 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ 232 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_
OLDNEW
« no previous file with comments | « media/cdm/player_tracker_impl.cc ('k') | media/filters/gpu_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698