| 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 MEDIA_GPU_AVDA_CODEC_IMAGE_H_ | 5 #ifndef MEDIA_GPU_AVDA_CODEC_IMAGE_H_ |
| 6 #define MEDIA_GPU_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 <memory> | 10 #include <memory> |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 int z_order, | 45 int z_order, |
| 46 gfx::OverlayTransform transform, | 46 gfx::OverlayTransform transform, |
| 47 const gfx::Rect& bounds_rect, | 47 const gfx::Rect& bounds_rect, |
| 48 const gfx::RectF& crop_rect) override; | 48 const gfx::RectF& crop_rect) override; |
| 49 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, | 49 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, |
| 50 uint64_t process_tracing_id, | 50 uint64_t process_tracing_id, |
| 51 const std::string& dump_name) override; | 51 const std::string& dump_name) override; |
| 52 // gpu::gles2::GLStreamTextureMatrix implementation | 52 // gpu::gles2::GLStreamTextureMatrix implementation |
| 53 void GetTextureMatrix(float xform[16]) override; | 53 void GetTextureMatrix(float xform[16]) override; |
| 54 | 54 |
| 55 void Flush() override {} |
| 56 |
| 55 enum class UpdateMode { | 57 enum class UpdateMode { |
| 56 // Discards the codec buffer, no UpdateTexImage(). | 58 // Discards the codec buffer, no UpdateTexImage(). |
| 57 DISCARD_CODEC_BUFFER, | 59 DISCARD_CODEC_BUFFER, |
| 58 | 60 |
| 59 // Renders to back buffer, no UpdateTexImage(); can only be used with a | 61 // Renders to back buffer, no UpdateTexImage(); can only be used with a |
| 60 // valid |surface_texture_|. | 62 // valid |surface_texture_|. |
| 61 RENDER_TO_BACK_BUFFER, | 63 RENDER_TO_BACK_BUFFER, |
| 62 | 64 |
| 63 // Renders to the back buffer. When used with a SurfaceView, promotion to | 65 // Renders to the back buffer. When used with a SurfaceView, promotion to |
| 64 // the front buffer is automatic. When using a |surface_texture_|, | 66 // the front buffer is automatic. When using a |surface_texture_|, |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 | 157 |
| 156 // The picture buffer id attached to this image. | 158 // The picture buffer id attached to this image. |
| 157 int picture_buffer_id_; | 159 int picture_buffer_id_; |
| 158 | 160 |
| 159 DISALLOW_COPY_AND_ASSIGN(AVDACodecImage); | 161 DISALLOW_COPY_AND_ASSIGN(AVDACodecImage); |
| 160 }; | 162 }; |
| 161 | 163 |
| 162 } // namespace media | 164 } // namespace media |
| 163 | 165 |
| 164 #endif // MEDIA_GPU_AVDA_CODEC_IMAGE_H_ | 166 #endif // MEDIA_GPU_AVDA_CODEC_IMAGE_H_ |
| OLD | NEW |