| 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 #ifndef CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_ENCODE_ACCELERATOR_MAC_H_ | 5 #ifndef CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_ENCODE_ACCELERATOR_MAC_H_ |
| 6 #define CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_ENCODE_ACCELERATOR_MAC_H_ | 6 #define CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_ENCODE_ACCELERATOR_MAC_H_ |
| 7 | 7 |
| 8 #include <memory> |
| 9 |
| 8 #include "base/mac/scoped_cftyperef.h" | 10 #include "base/mac/scoped_cftyperef.h" |
| 9 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
| 10 #include "media/base/mac/videotoolbox_glue.h" | 12 #include "media/base/mac/videotoolbox_glue.h" |
| 11 #include "media/base/mac/videotoolbox_helpers.h" | 13 #include "media/base/mac/videotoolbox_helpers.h" |
| 12 #include "media/video/video_encode_accelerator.h" | 14 #include "media/video/video_encode_accelerator.h" |
| 13 | 15 |
| 14 namespace content { | 16 namespace content { |
| 15 | 17 |
| 16 // VideoToolbox.framework implementation of the VideoEncodeAccelerator | 18 // VideoToolbox.framework implementation of the VideoEncodeAccelerator |
| 17 // interface for MacOSX. VideoToolbox makes no guarantees that it is thread | 19 // interface for MacOSX. VideoToolbox makes no guarantees that it is thread |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 // other destructors run. | 136 // other destructors run. |
| 135 base::WeakPtr<VTVideoEncodeAccelerator> encoder_weak_ptr_; | 137 base::WeakPtr<VTVideoEncodeAccelerator> encoder_weak_ptr_; |
| 136 base::WeakPtrFactory<VTVideoEncodeAccelerator> encoder_task_weak_factory_; | 138 base::WeakPtrFactory<VTVideoEncodeAccelerator> encoder_task_weak_factory_; |
| 137 | 139 |
| 138 DISALLOW_COPY_AND_ASSIGN(VTVideoEncodeAccelerator); | 140 DISALLOW_COPY_AND_ASSIGN(VTVideoEncodeAccelerator); |
| 139 }; | 141 }; |
| 140 | 142 |
| 141 } // namespace content | 143 } // namespace content |
| 142 | 144 |
| 143 #endif // CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_ENCODE_ACCELERATOR_MAC_H_ | 145 #endif // CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_ENCODE_ACCELERATOR_MAC_H_ |
| OLD | NEW |