| 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 MEDIA_BASE_ANDROID_STREAM_TEXTURE_WRAPPER_H_ | 5 #ifndef MEDIA_BASE_ANDROID_STREAM_TEXTURE_WRAPPER_H_ |
| 6 #define MEDIA_BASE_ANDROID_STREAM_TEXTURE_WRAPPER_H_ | 6 #define MEDIA_BASE_ANDROID_STREAM_TEXTURE_WRAPPER_H_ |
| 7 | 7 |
| 8 #include "base/single_thread_task_runner.h" |
| 8 #include "media/base/video_frame.h" | 9 #include "media/base/video_frame.h" |
| 9 | 10 |
| 10 namespace media { | 11 namespace media { |
| 11 class VideoFrame; | 12 class VideoFrame; |
| 12 | 13 |
| 13 // StreamTextureWrapper encapsulates a StreamTexture's creation, initialization | 14 // StreamTextureWrapper encapsulates a StreamTexture's creation, initialization |
| 14 // and registration for later retrieval (in the Browser process). | 15 // and registration for later retrieval (in the Browser process). |
| 15 // | 16 // |
| 16 // TODO(tguilbert): Support registering the underlying SurfaceTexture so it can | 17 // TODO(tguilbert): Support registering the underlying SurfaceTexture so it can |
| 17 // be used by a MediaPlayer in the browser process. See crbug.com/627658. | 18 // be used by a MediaPlayer in the browser process. See crbug.com/627658. |
| (...skipping 28 matching lines...) Expand all Loading... |
| 46 // See StreamTextureWrapperImpl. | 47 // See StreamTextureWrapperImpl. |
| 47 virtual void Destroy() = 0; | 48 virtual void Destroy() = 0; |
| 48 }; | 49 }; |
| 49 | 50 |
| 50 typedef std::unique_ptr<StreamTextureWrapper, StreamTextureWrapper::Deleter> | 51 typedef std::unique_ptr<StreamTextureWrapper, StreamTextureWrapper::Deleter> |
| 51 ScopedStreamTextureWrapper; | 52 ScopedStreamTextureWrapper; |
| 52 | 53 |
| 53 } // namespace media | 54 } // namespace media |
| 54 | 55 |
| 55 #endif // MEDIA_BASE_ANDROID_STREAM_TEXTURE_WRAPPER_H_ | 56 #endif // MEDIA_BASE_ANDROID_STREAM_TEXTURE_WRAPPER_H_ |
| OLD | NEW |