OLD | NEW |
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 Loading... |
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 |
OLD | NEW |