| 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 | 144 |
| 145 const base::WeakPtr<gpu::gles2::GLES2Decoder> decoder_; | 145 const base::WeakPtr<gpu::gles2::GLES2Decoder> decoder_; |
| 146 | 146 |
| 147 // Indicates if we're rendering to a SurfaceTexture or not. Set during the | 147 // Indicates if we're rendering to a SurfaceTexture or not. Set during the |
| 148 // call to SetBufferMetadata(). | 148 // call to SetBufferMetadata(). |
| 149 bool has_surface_texture_; | 149 bool has_surface_texture_; |
| 150 | 150 |
| 151 // The texture that we're attached to. | 151 // The texture that we're attached to. |
| 152 gpu::gles2::Texture* texture_; | 152 gpu::gles2::Texture* texture_; |
| 153 | 153 |
| 154 // Bounds that we last sent to our overlay. |
| 155 gfx::Rect most_recent_bounds_; |
| 156 |
| 154 DISALLOW_COPY_AND_ASSIGN(AVDACodecImage); | 157 DISALLOW_COPY_AND_ASSIGN(AVDACodecImage); |
| 155 }; | 158 }; |
| 156 | 159 |
| 157 } // namespace media | 160 } // namespace media |
| 158 | 161 |
| 159 #endif // MEDIA_GPU_AVDA_CODEC_IMAGE_H_ | 162 #endif // MEDIA_GPU_AVDA_CODEC_IMAGE_H_ |
| OLD | NEW |