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

Side by Side Diff: content/common/gpu/media/vt_video_decode_accelerator_mac.cc

Issue 1859703002: convert //gpu to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: convert newly added scoped_ptr's Created 4 years, 8 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "content/common/gpu/media/vt_video_decode_accelerator_mac.h" 5 #include "content/common/gpu/media/vt_video_decode_accelerator_mac.h"
6 6
7 #include <CoreVideo/CoreVideo.h> 7 #include <CoreVideo/CoreVideo.h>
8 #include <OpenGL/CGLIOSurface.h> 8 #include <OpenGL/CGLIOSurface.h>
9 #include <OpenGL/gl.h> 9 #include <OpenGL/gl.h>
10 #include <stddef.h> 10 #include <stddef.h>
11 11
12 #include <algorithm> 12 #include <algorithm>
13 #include <memory>
13 14
14 #include "base/bind.h" 15 #include "base/bind.h"
15 #include "base/logging.h" 16 #include "base/logging.h"
16 #include "base/mac/mac_logging.h" 17 #include "base/mac/mac_logging.h"
17 #include "base/macros.h" 18 #include "base/macros.h"
18 #include "base/memory/ptr_util.h" 19 #include "base/memory/ptr_util.h"
19 #include "base/metrics/histogram_macros.h" 20 #include "base/metrics/histogram_macros.h"
20 #include "base/sys_byteorder.h" 21 #include "base/sys_byteorder.h"
21 #include "base/sys_info.h" 22 #include "base/sys_info.h"
22 #include "base/thread_task_runner_handle.h" 23 #include "base/thread_task_runner_handle.h"
(...skipping 1122 matching lines...) Expand 10 before | Expand all | Expand 10 after
1145 SupportedProfile profile; 1146 SupportedProfile profile;
1146 profile.profile = supported_profile; 1147 profile.profile = supported_profile;
1147 profile.min_resolution.SetSize(16, 16); 1148 profile.min_resolution.SetSize(16, 16);
1148 profile.max_resolution.SetSize(4096, 2160); 1149 profile.max_resolution.SetSize(4096, 2160);
1149 profiles.push_back(profile); 1150 profiles.push_back(profile);
1150 } 1151 }
1151 return profiles; 1152 return profiles;
1152 } 1153 }
1153 1154
1154 } // namespace content 1155 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698