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

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

Issue 1859703002: convert //gpu to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master 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
« no previous file with comments | « content/common/gpu/media/vt_video_encode_accelerator_mac.h ('k') | content/gpu/gpu_main.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 "content/common/gpu/media/vt_video_encode_accelerator_mac.h" 5 #include "content/common/gpu/media/vt_video_encode_accelerator_mac.h"
6 6
7 #include <memory>
8
7 #include "base/thread_task_runner_handle.h" 9 #include "base/thread_task_runner_handle.h"
8 #include "media/base/mac/coremedia_glue.h" 10 #include "media/base/mac/coremedia_glue.h"
9 #include "media/base/mac/corevideo_glue.h" 11 #include "media/base/mac/corevideo_glue.h"
10 #include "media/base/mac/video_frame_mac.h" 12 #include "media/base/mac/video_frame_mac.h"
11 13
12 namespace content { 14 namespace content {
13 15
14 namespace { 16 namespace {
15 17
16 // TODO(emircan): Check if we can find the actual system capabilities via 18 // TODO(emircan): Check if we can find the actual system capabilities via
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 (encoder_thread_.IsRunning() && 545 (encoder_thread_.IsRunning() &&
544 encoder_thread_task_runner_->BelongsToCurrentThread())); 546 encoder_thread_task_runner_->BelongsToCurrentThread()));
545 547
546 if (compression_session_) { 548 if (compression_session_) {
547 videotoolbox_glue_->VTCompressionSessionInvalidate(compression_session_); 549 videotoolbox_glue_->VTCompressionSessionInvalidate(compression_session_);
548 compression_session_.reset(); 550 compression_session_.reset();
549 } 551 }
550 } 552 }
551 553
552 } // namespace content 554 } // namespace content
OLDNEW
« no previous file with comments | « content/common/gpu/media/vt_video_encode_accelerator_mac.h ('k') | content/gpu/gpu_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698