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

Side by Side Diff: media/base/mac/videotoolbox_helpers.cc

Issue 1906423005: Replace scoped_ptr with std::unique_ptr in //media/base. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptr-media-base: android Created 4 years, 7 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/mac/videotoolbox_glue.mm ('k') | media/base/media_file_checker.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/mac/videotoolbox_helpers.h" 5 #include "media/base/mac/videotoolbox_helpers.h"
6 6
7 #include <array> 7 #include <array>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/big_endian.h" 10 #include "base/big_endian.h"
11 #include "base/memory/scoped_ptr.h"
12 11
13 namespace media { 12 namespace media {
14 13
15 namespace video_toolbox { 14 namespace video_toolbox {
16 15
17 base::ScopedCFTypeRef<CFDictionaryRef> 16 base::ScopedCFTypeRef<CFDictionaryRef>
18 DictionaryWithKeysAndValues(CFTypeRef* keys, CFTypeRef* values, size_t size) { 17 DictionaryWithKeysAndValues(CFTypeRef* keys, CFTypeRef* values, size_t size) {
19 return base::ScopedCFTypeRef<CFDictionaryRef>(CFDictionaryCreate( 18 return base::ScopedCFTypeRef<CFDictionaryRef>(CFDictionaryCreate(
20 kCFAllocatorDefault, keys, values, size, &kCFTypeDictionaryKeyCallBacks, 19 kCFAllocatorDefault, keys, values, size, &kCFTypeDictionaryKeyCallBacks,
21 &kCFTypeDictionaryValueCallBacks)); 20 &kCFTypeDictionaryValueCallBacks));
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 294
296 bool SessionPropertySetter::Set(CFStringRef key, CFArrayRef value) { 295 bool SessionPropertySetter::Set(CFStringRef key, CFArrayRef value) {
297 DCHECK(session_); 296 DCHECK(session_);
298 DCHECK(glue_); 297 DCHECK(glue_);
299 return glue_->VTSessionSetProperty(session_, key, value) == noErr; 298 return glue_->VTSessionSetProperty(session_, key, value) == noErr;
300 } 299 }
301 300
302 } // namespace video_toolbox 301 } // namespace video_toolbox
303 302
304 } // namespace media 303 } // namespace media
OLDNEW
« no previous file with comments | « media/base/mac/videotoolbox_glue.mm ('k') | media/base/media_file_checker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698