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

Side by Side Diff: media/base/video_decoder_config.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, 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/base/video_decoder_config.h ('k') | media/capture/video/video_capture_device_info.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/base/video_decoder_config.h" 5 #include "media/base/video_decoder_config.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "media/base/video_frame.h" 10 #include "media/base/video_frame.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 ColorSpace color_space, 48 ColorSpace color_space,
49 const gfx::Size& coded_size, 49 const gfx::Size& coded_size,
50 const gfx::Rect& visible_rect, 50 const gfx::Rect& visible_rect,
51 const gfx::Size& natural_size, 51 const gfx::Size& natural_size,
52 const std::vector<uint8_t>& extra_data, 52 const std::vector<uint8_t>& extra_data,
53 bool is_encrypted) { 53 bool is_encrypted) {
54 Initialize(codec, profile, format, color_space, coded_size, visible_rect, 54 Initialize(codec, profile, format, color_space, coded_size, visible_rect,
55 natural_size, extra_data, is_encrypted); 55 natural_size, extra_data, is_encrypted);
56 } 56 }
57 57
58 VideoDecoderConfig::VideoDecoderConfig(const VideoDecoderConfig& other) =
59 default;
60
58 VideoDecoderConfig::~VideoDecoderConfig() {} 61 VideoDecoderConfig::~VideoDecoderConfig() {}
59 62
60 void VideoDecoderConfig::Initialize(VideoCodec codec, 63 void VideoDecoderConfig::Initialize(VideoCodec codec,
61 VideoCodecProfile profile, 64 VideoCodecProfile profile,
62 VideoPixelFormat format, 65 VideoPixelFormat format,
63 ColorSpace color_space, 66 ColorSpace color_space,
64 const gfx::Size& coded_size, 67 const gfx::Size& coded_size,
65 const gfx::Rect& visible_rect, 68 const gfx::Rect& visible_rect,
66 const gfx::Size& natural_size, 69 const gfx::Size& natural_size,
67 const std::vector<uint8_t>& extra_data, 70 const std::vector<uint8_t>& extra_data,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 << " visible rect: [" << visible_rect().x() << "," << visible_rect().y() 107 << " visible rect: [" << visible_rect().x() << "," << visible_rect().y()
105 << "," << visible_rect().width() << "," << visible_rect().height() << "]" 108 << "," << visible_rect().width() << "," << visible_rect().height() << "]"
106 << " natural size: [" << natural_size().width() << "," 109 << " natural size: [" << natural_size().width() << ","
107 << natural_size().height() << "]" 110 << natural_size().height() << "]"
108 << " has extra data? " << (extra_data().empty() ? "false" : "true") 111 << " has extra data? " << (extra_data().empty() ? "false" : "true")
109 << " encrypted? " << (is_encrypted() ? "true" : "false"); 112 << " encrypted? " << (is_encrypted() ? "true" : "false");
110 return s.str(); 113 return s.str();
111 } 114 }
112 115
113 } // namespace media 116 } // namespace media
OLDNEW
« no previous file with comments | « media/base/video_decoder_config.h ('k') | media/capture/video/video_capture_device_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698