OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ | 5 #ifndef MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ |
6 #define MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ | 6 #define MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <list> | 10 #include <list> |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 const base::WeakPtr<Client>& decode_client, | 135 const base::WeakPtr<Client>& decode_client, |
136 const scoped_refptr<base::SingleThreadTaskRunner>& decode_task_runner) | 136 const scoped_refptr<base::SingleThreadTaskRunner>& decode_task_runner) |
137 override; | 137 override; |
138 | 138 |
139 // AVDAStateProvider implementation: | 139 // AVDAStateProvider implementation: |
140 const gfx::Size& GetSize() const override; | 140 const gfx::Size& GetSize() const override; |
141 const base::ThreadChecker& ThreadChecker() const override; | 141 const base::ThreadChecker& ThreadChecker() const override; |
142 base::WeakPtr<gpu::gles2::GLES2Decoder> GetGlDecoder() const override; | 142 base::WeakPtr<gpu::gles2::GLES2Decoder> GetGlDecoder() const override; |
143 gpu::gles2::TextureRef* GetTextureForPicture( | 143 gpu::gles2::TextureRef* GetTextureForPicture( |
144 const media::PictureBuffer& picture_buffer) override; | 144 const media::PictureBuffer& picture_buffer) override; |
| 145 scoped_refptr<gfx::SurfaceTexture> CreateAttachedSurfaceTexture( |
| 146 GLuint* service_id) override; |
145 void PostError(const ::tracked_objects::Location& from_here, | 147 void PostError(const ::tracked_objects::Location& from_here, |
146 media::VideoDecodeAccelerator::Error error) override; | 148 media::VideoDecodeAccelerator::Error error) override; |
147 | 149 |
148 static media::VideoDecodeAccelerator::Capabilities GetCapabilities( | 150 static media::VideoDecodeAccelerator::Capabilities GetCapabilities( |
149 const gpu::GpuPreferences& gpu_preferences); | 151 const gpu::GpuPreferences& gpu_preferences); |
150 | 152 |
151 // Notifies about SurfaceTexture::OnFrameAvailable. This can happen on any | 153 // Notifies about SurfaceTexture::OnFrameAvailable. This can happen on any |
152 // thread at any time! | 154 // thread at any time! |
153 void OnFrameAvailable(); | 155 void OnFrameAvailable(); |
154 | 156 |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 | 443 |
442 // WeakPtrFactory for posting tasks back to |this|. | 444 // WeakPtrFactory for posting tasks back to |this|. |
443 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_; | 445 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_; |
444 | 446 |
445 friend class AndroidVideoDecodeAcceleratorTest; | 447 friend class AndroidVideoDecodeAcceleratorTest; |
446 }; | 448 }; |
447 | 449 |
448 } // namespace media | 450 } // namespace media |
449 | 451 |
450 #endif // MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ | 452 #endif // MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ |
OLD | NEW |