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

Side by Side Diff: media/base/video_decoder_config.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/text_track_config.cc ('k') | media/base/video_decoder_config.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_BASE_VIDEO_DECODER_CONFIG_H_ 5 #ifndef MEDIA_BASE_VIDEO_DECODER_CONFIG_H_
6 #define MEDIA_BASE_VIDEO_DECODER_CONFIG_H_ 6 #define MEDIA_BASE_VIDEO_DECODER_CONFIG_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 22 matching lines...) Expand all
33 VideoDecoderConfig(VideoCodec codec, 33 VideoDecoderConfig(VideoCodec codec,
34 VideoCodecProfile profile, 34 VideoCodecProfile profile,
35 VideoPixelFormat format, 35 VideoPixelFormat format,
36 ColorSpace color_space, 36 ColorSpace color_space,
37 const gfx::Size& coded_size, 37 const gfx::Size& coded_size,
38 const gfx::Rect& visible_rect, 38 const gfx::Rect& visible_rect,
39 const gfx::Size& natural_size, 39 const gfx::Size& natural_size,
40 const std::vector<uint8_t>& extra_data, 40 const std::vector<uint8_t>& extra_data,
41 bool is_encrypted); 41 bool is_encrypted);
42 42
43 VideoDecoderConfig(const VideoDecoderConfig& other);
44
43 ~VideoDecoderConfig(); 45 ~VideoDecoderConfig();
44 46
45 // Resets the internal state of this object. 47 // Resets the internal state of this object.
46 void Initialize(VideoCodec codec, 48 void Initialize(VideoCodec codec,
47 VideoCodecProfile profile, 49 VideoCodecProfile profile,
48 VideoPixelFormat format, 50 VideoPixelFormat format,
49 ColorSpace color_space, 51 ColorSpace color_space,
50 const gfx::Size& coded_size, 52 const gfx::Size& coded_size,
51 const gfx::Rect& visible_rect, 53 const gfx::Rect& visible_rect,
52 const gfx::Size& natural_size, 54 const gfx::Size& natural_size,
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 bool is_encrypted_; 118 bool is_encrypted_;
117 119
118 // Not using DISALLOW_COPY_AND_ASSIGN here intentionally to allow the compiler 120 // Not using DISALLOW_COPY_AND_ASSIGN here intentionally to allow the compiler
119 // generated copy constructor and assignment operator. Since the extra data is 121 // generated copy constructor and assignment operator. Since the extra data is
120 // typically small, the performance impact is minimal. 122 // typically small, the performance impact is minimal.
121 }; 123 };
122 124
123 } // namespace media 125 } // namespace media
124 126
125 #endif // MEDIA_BASE_VIDEO_DECODER_CONFIG_H_ 127 #endif // MEDIA_BASE_VIDEO_DECODER_CONFIG_H_
OLDNEW
« no previous file with comments | « media/base/text_track_config.cc ('k') | media/base/video_decoder_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698