| 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 28 matching lines...) Expand all Loading... |
| 39 void ReleaseTexImage(unsigned target) override; | 39 void ReleaseTexImage(unsigned target) override; |
| 40 bool CopyTexImage(unsigned target) override; | 40 bool CopyTexImage(unsigned target) override; |
| 41 bool CopyTexSubImage(unsigned target, | 41 bool CopyTexSubImage(unsigned target, |
| 42 const gfx::Point& offset, | 42 const gfx::Point& offset, |
| 43 const gfx::Rect& rect) override; | 43 const gfx::Rect& rect) override; |
| 44 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, | 44 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, |
| 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 Flush() override {} |
| 49 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, | 50 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, |
| 50 uint64_t process_tracing_id, | 51 uint64_t process_tracing_id, |
| 51 const std::string& dump_name) override; | 52 const std::string& dump_name) override; |
| 52 // gpu::gles2::GLStreamTextureMatrix implementation | 53 // gpu::gles2::GLStreamTextureMatrix implementation |
| 53 void GetTextureMatrix(float xform[16]) override; | 54 void GetTextureMatrix(float xform[16]) override; |
| 54 | 55 |
| 55 enum class UpdateMode { | 56 enum class UpdateMode { |
| 56 // Discards the codec buffer, no UpdateTexImage(). | 57 // Discards the codec buffer, no UpdateTexImage(). |
| 57 DISCARD_CODEC_BUFFER, | 58 DISCARD_CODEC_BUFFER, |
| 58 | 59 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 | 156 |
| 156 // The picture buffer id attached to this image. | 157 // The picture buffer id attached to this image. |
| 157 int picture_buffer_id_; | 158 int picture_buffer_id_; |
| 158 | 159 |
| 159 DISALLOW_COPY_AND_ASSIGN(AVDACodecImage); | 160 DISALLOW_COPY_AND_ASSIGN(AVDACodecImage); |
| 160 }; | 161 }; |
| 161 | 162 |
| 162 } // namespace media | 163 } // namespace media |
| 163 | 164 |
| 164 #endif // MEDIA_GPU_AVDA_CODEC_IMAGE_H_ | 165 #endif // MEDIA_GPU_AVDA_CODEC_IMAGE_H_ |
| OLD | NEW |