| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_FILTERS_GPU_VIDEO_DECODER_H_ | 5 #ifndef MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ |
| 6 #define MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ | 6 #define MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 // For requesting a suface to render to. If this is null the VDA will return | 171 // For requesting a suface to render to. If this is null the VDA will return |
| 172 // normal video frames and not render them to a surface. | 172 // normal video frames and not render them to a surface. |
| 173 RequestSurfaceCB request_surface_cb_; | 173 RequestSurfaceCB request_surface_cb_; |
| 174 | 174 |
| 175 scoped_refptr<MediaLog> media_log_; | 175 scoped_refptr<MediaLog> media_log_; |
| 176 | 176 |
| 177 // Populated during Initialize() (on success) and unchanged until an error | 177 // Populated during Initialize() (on success) and unchanged until an error |
| 178 // occurs. | 178 // occurs. |
| 179 std::unique_ptr<VideoDecodeAccelerator> vda_; | 179 std::unique_ptr<VideoDecodeAccelerator> vda_; |
| 180 | 180 |
| 181 // Whether |vda_->Initialize()| has been called. This is used to avoid |
| 182 // calling Initialize() again while a deferred initialization is in progress. |
| 183 bool vda_initialized_; |
| 184 |
| 181 InitCB init_cb_; | 185 InitCB init_cb_; |
| 182 OutputCB output_cb_; | 186 OutputCB output_cb_; |
| 183 | 187 |
| 184 DecodeCB eos_decode_cb_; | 188 DecodeCB eos_decode_cb_; |
| 185 | 189 |
| 186 // Not null only during reset. | 190 // Not null only during reset. |
| 187 base::Closure pending_reset_cb_; | 191 base::Closure pending_reset_cb_; |
| 188 | 192 |
| 189 State state_; | 193 State state_; |
| 190 | 194 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 // Bound to factories_->GetMessageLoop(). | 262 // Bound to factories_->GetMessageLoop(). |
| 259 // NOTE: Weak pointers must be invalidated before all other member variables. | 263 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 260 base::WeakPtrFactory<GpuVideoDecoder> weak_factory_; | 264 base::WeakPtrFactory<GpuVideoDecoder> weak_factory_; |
| 261 | 265 |
| 262 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); | 266 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); |
| 263 }; | 267 }; |
| 264 | 268 |
| 265 } // namespace media | 269 } // namespace media |
| 266 | 270 |
| 267 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ | 271 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ |
| OLD | NEW |