Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: media/blink/webmediaplayer_impl.h

Issue 1972783003: Disable idle suspend for Chromecast (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reverted all content/ changes, API now in Renderer Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <memory> 10 #include <memory>
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 484
485 // For requesting surfaces on behalf of the Android H/W decoder in fullscreen. 485 // For requesting surfaces on behalf of the Android H/W decoder in fullscreen.
486 // This will be null everywhere but Android. 486 // This will be null everywhere but Android.
487 SurfaceManager* surface_manager_; 487 SurfaceManager* surface_manager_;
488 488
489 // Suppresses calls to OnPipelineError() after destruction / shutdown has been 489 // Suppresses calls to OnPipelineError() after destruction / shutdown has been
490 // started; prevents us from spuriously logging errors that are transient or 490 // started; prevents us from spuriously logging errors that are transient or
491 // unimportant. 491 // unimportant.
492 bool suppress_destruction_errors_; 492 bool suppress_destruction_errors_;
493 493
494 // State indicating if it's okay to suspend or not. Updated on the first time 494 // State indicating if it's okay to suspend or not. If construction params
495 // forbid suspending, always NO. Otherwise, updated on the first time
495 // OnSuspendRequested() is called. If the state is UNKNOWN, the current frame 496 // OnSuspendRequested() is called. If the state is UNKNOWN, the current frame
496 // from the compositor will be queried to see if suspend is supported; the 497 // from the compositor will be queried to see if suspend is supported; the
497 // state will be set to YES or NO respectively if a frame is available. 498 // state will be set to YES or NO respectively if a frame is available.
498 enum class CanSuspendState { UNKNOWN, YES, NO }; 499 enum class CanSuspendState { UNKNOWN, YES, NO };
499 CanSuspendState can_suspend_state_; 500 CanSuspendState can_suspend_state_;
500 501
501 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 502 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
502 }; 503 };
503 504
504 } // namespace media 505 } // namespace media
505 506
506 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 507 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698