| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_AVDA_CODEC_IMAGE_H_ | 5 #ifndef MEDIA_GPU_AVDA_CODEC_IMAGE_H_ |
| 6 #define CONTENT_COMMON_GPU_MEDIA_AVDA_CODEC_IMAGE_H_ | 6 #define MEDIA_GPU_AVDA_CODEC_IMAGE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "content/common/gpu/media/avda_shared_state.h" | |
| 12 #include "gpu/command_buffer/service/gl_stream_texture_image.h" | 11 #include "gpu/command_buffer/service/gl_stream_texture_image.h" |
| 12 #include "media/gpu/avda_shared_state.h" |
| 13 | 13 |
| 14 namespace ui { | 14 namespace ui { |
| 15 class ScopedMakeCurrent; | 15 class ScopedMakeCurrent; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace content { | 18 namespace media { |
| 19 | 19 |
| 20 // GLImage that renders MediaCodec buffers to a SurfaceTexture or SurfaceView as | 20 // GLImage that renders MediaCodec buffers to a SurfaceTexture or SurfaceView as |
| 21 // needed in order to draw them. | 21 // needed in order to draw them. |
| 22 class AVDACodecImage : public gpu::gles2::GLStreamTextureImage { | 22 class AVDACodecImage : public gpu::gles2::GLStreamTextureImage { |
| 23 public: | 23 public: |
| 24 AVDACodecImage(const scoped_refptr<AVDASharedState>&, | 24 AVDACodecImage(const scoped_refptr<AVDASharedState>&, |
| 25 media::VideoCodecBridge* codec, | 25 media::VideoCodecBridge* codec, |
| 26 const base::WeakPtr<gpu::gles2::GLES2Decoder>& decoder, | 26 const base::WeakPtr<gpu::gles2::GLES2Decoder>& decoder, |
| 27 const scoped_refptr<gfx::SurfaceTexture>& surface_texture); | 27 const scoped_refptr<gfx::SurfaceTexture>& surface_texture); |
| 28 | 28 |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 | 120 |
| 121 // The texture that we're attached to. | 121 // The texture that we're attached to. |
| 122 gpu::gles2::Texture* texture_; | 122 gpu::gles2::Texture* texture_; |
| 123 | 123 |
| 124 // Texture matrix of the front buffer of the surface texture. | 124 // Texture matrix of the front buffer of the surface texture. |
| 125 float gl_matrix_[16]; | 125 float gl_matrix_[16]; |
| 126 | 126 |
| 127 DISALLOW_COPY_AND_ASSIGN(AVDACodecImage); | 127 DISALLOW_COPY_AND_ASSIGN(AVDACodecImage); |
| 128 }; | 128 }; |
| 129 | 129 |
| 130 } // namespace content | 130 } // namespace media |
| 131 | 131 |
| 132 #endif // CONTENT_COMMON_GPU_MEDIA_AVDA_CODEC_IMAGE_H_ | 132 #endif // MEDIA_GPU_AVDA_CODEC_IMAGE_H_ |
| OLD | NEW |