| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 5 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
| 6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 483 | 483 |
| 484 // For requesting surfaces on behalf of the Android H/W decoder in fullscreen. | 484 // For requesting surfaces on behalf of the Android H/W decoder in fullscreen. |
| 485 // This will be null everywhere but Android. | 485 // This will be null everywhere but Android. |
| 486 SurfaceManager* surface_manager_; | 486 SurfaceManager* surface_manager_; |
| 487 | 487 |
| 488 // Suppresses calls to OnPipelineError() after destruction / shutdown has been | 488 // Suppresses calls to OnPipelineError() after destruction / shutdown has been |
| 489 // started; prevents us from spuriously logging errors that are transient or | 489 // started; prevents us from spuriously logging errors that are transient or |
| 490 // unimportant. | 490 // unimportant. |
| 491 bool suppress_destruction_errors_; | 491 bool suppress_destruction_errors_; |
| 492 | 492 |
| 493 // State indicating if it's okay to suspend or not. Updated on the first time |
| 494 // OnSuspendRequested() is called. If the state is UNKNOWN, the current frame |
| 495 // from the compositor will be queried to see if suspend is supported; the |
| 496 // state will be set to YES or NO respectively if a frame is available. |
| 497 enum class CanSuspendState { UNKNOWN, YES, NO }; |
| 498 CanSuspendState can_suspend_state_; |
| 499 |
| 493 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 500 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
| 494 }; | 501 }; |
| 495 | 502 |
| 496 } // namespace media | 503 } // namespace media |
| 497 | 504 |
| 498 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 505 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |