| 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 "media/gpu/vt_video_encode_accelerator_mac.h" | 5 #include "media/gpu/vt_video_encode_accelerator_mac.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/mac/mac_util.h" | 9 #include "base/mac/mac_util.h" |
| 10 #include "base/thread_task_runner_handle.h" | 10 #include "base/threading/thread_task_runner_handle.h" |
| 11 #include "media/base/mac/coremedia_glue.h" | 11 #include "media/base/mac/coremedia_glue.h" |
| 12 #include "media/base/mac/corevideo_glue.h" | 12 #include "media/base/mac/corevideo_glue.h" |
| 13 #include "media/base/mac/video_frame_mac.h" | 13 #include "media/base/mac/video_frame_mac.h" |
| 14 | 14 |
| 15 namespace media { | 15 namespace media { |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| 18 | 18 |
| 19 // TODO(emircan): Check if we can find the actual system capabilities via | 19 // TODO(emircan): Check if we can find the actual system capabilities via |
| 20 // creating VTCompressionSessions with varying requirements. | 20 // creating VTCompressionSessions with varying requirements. |
| (...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 547 (encoder_thread_.IsRunning() && | 547 (encoder_thread_.IsRunning() && |
| 548 encoder_thread_task_runner_->BelongsToCurrentThread())); | 548 encoder_thread_task_runner_->BelongsToCurrentThread())); |
| 549 | 549 |
| 550 if (compression_session_) { | 550 if (compression_session_) { |
| 551 videotoolbox_glue_->VTCompressionSessionInvalidate(compression_session_); | 551 videotoolbox_glue_->VTCompressionSessionInvalidate(compression_session_); |
| 552 compression_session_.reset(); | 552 compression_session_.reset(); |
| 553 } | 553 } |
| 554 } | 554 } |
| 555 | 555 |
| 556 } // namespace media | 556 } // namespace media |
| OLD | NEW |