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

Side by Side Diff: media/video/video_decode_accelerator.cc

Issue 1445003002: Use std::default_delete as the default deleter for scoped_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: How many trial and errors before this builds on the Windows bots Created 5 years, 1 month 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/video/video_decode_accelerator.h ('k') | media/video/video_encode_accelerator.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) 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 #include "media/video/video_decode_accelerator.h" 5 #include "media/video/video_decode_accelerator.h"
6 6
7 #include <GLES2/gl2.h> 7 #include <GLES2/gl2.h>
8 #include "base/logging.h" 8 #include "base/logging.h"
9 9
10 namespace media { 10 namespace media {
(...skipping 20 matching lines...) Expand all
31 31
32 VideoDecodeAccelerator::SupportedProfile::SupportedProfile() 32 VideoDecodeAccelerator::SupportedProfile::SupportedProfile()
33 : profile(media::VIDEO_CODEC_PROFILE_UNKNOWN) { 33 : profile(media::VIDEO_CODEC_PROFILE_UNKNOWN) {
34 } 34 }
35 35
36 VideoDecodeAccelerator::SupportedProfile::~SupportedProfile() { 36 VideoDecodeAccelerator::SupportedProfile::~SupportedProfile() {
37 } 37 }
38 38
39 } // namespace media 39 } // namespace media
40 40
41 namespace base { 41 namespace std {
42 42
43 void DefaultDeleter<media::VideoDecodeAccelerator>::operator()( 43 void default_delete<media::VideoDecodeAccelerator>::operator()(
44 void* video_decode_accelerator) const { 44 media::VideoDecodeAccelerator* vda) const {
45 static_cast<media::VideoDecodeAccelerator*>(video_decode_accelerator)-> 45 vda->Destroy();
46 Destroy();
47 } 46 }
48 47
49 } // namespace base 48 } // namespace std
50
51
OLDNEW
« no previous file with comments | « media/video/video_decode_accelerator.h ('k') | media/video/video_encode_accelerator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698