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

Side by Side Diff: media/base/bitstream_buffer.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, 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/base/audio_video_metadata_extractor.cc ('k') | media/base/bitstream_buffer.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) 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 #ifndef MEDIA_BASE_BITSTREAM_BUFFER_H_ 5 #ifndef MEDIA_BASE_BITSTREAM_BUFFER_H_
6 #define MEDIA_BASE_BITSTREAM_BUFFER_H_ 6 #define MEDIA_BASE_BITSTREAM_BUFFER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 10 matching lines...) Expand all
21 // data. This is the media-namespace equivalent of PP_VideoBitstreamBuffer_Dev. 21 // data. This is the media-namespace equivalent of PP_VideoBitstreamBuffer_Dev.
22 class MEDIA_EXPORT BitstreamBuffer { 22 class MEDIA_EXPORT BitstreamBuffer {
23 public: 23 public:
24 BitstreamBuffer(int32_t id, base::SharedMemoryHandle handle, size_t size); 24 BitstreamBuffer(int32_t id, base::SharedMemoryHandle handle, size_t size);
25 25
26 BitstreamBuffer(int32_t id, 26 BitstreamBuffer(int32_t id,
27 base::SharedMemoryHandle handle, 27 base::SharedMemoryHandle handle,
28 size_t size, 28 size_t size,
29 base::TimeDelta presentation_timestamp); 29 base::TimeDelta presentation_timestamp);
30 30
31 BitstreamBuffer(const BitstreamBuffer& other);
32
31 ~BitstreamBuffer(); 33 ~BitstreamBuffer();
32 34
33 void SetDecryptConfig(const DecryptConfig& decrypt_config); 35 void SetDecryptConfig(const DecryptConfig& decrypt_config);
34 36
35 int32_t id() const { return id_; } 37 int32_t id() const { return id_; }
36 base::SharedMemoryHandle handle() const { return handle_; } 38 base::SharedMemoryHandle handle() const { return handle_; }
37 size_t size() const { return size_; } 39 size_t size() const { return size_; }
38 40
39 // The timestamp is only valid if it's not equal to |media::kNoTimestamp()|. 41 // The timestamp is only valid if it's not equal to |media::kNoTimestamp()|.
40 base::TimeDelta presentation_timestamp() const { 42 base::TimeDelta presentation_timestamp() const {
(...skipping 23 matching lines...) Expand all
64 std::string key_id_; // key ID. 66 std::string key_id_; // key ID.
65 std::string iv_; // initialization vector 67 std::string iv_; // initialization vector
66 std::vector<SubsampleEntry> subsamples_; // clear/cypher sizes 68 std::vector<SubsampleEntry> subsamples_; // clear/cypher sizes
67 69
68 // Allow compiler-generated copy & assign constructors. 70 // Allow compiler-generated copy & assign constructors.
69 }; 71 };
70 72
71 } // namespace media 73 } // namespace media
72 74
73 #endif // MEDIA_BASE_BITSTREAM_BUFFER_H_ 75 #endif // MEDIA_BASE_BITSTREAM_BUFFER_H_
OLDNEW
« no previous file with comments | « media/base/audio_video_metadata_extractor.cc ('k') | media/base/bitstream_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698