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

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

Issue 2297973002: WMPI: Add base::Feature for disabling SurfaceViews. (Closed)
Patch Set: Adjust member variable name. Created 4 years, 3 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
« no previous file with comments | « media/base/media_switches.cc ('k') | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 // surface is created. 514 // surface is created.
515 int overlay_surface_id_; 515 int overlay_surface_id_;
516 516
517 // If a surface is requested before it's finished being created, the request 517 // If a surface is requested before it's finished being created, the request
518 // is saved and satisfied once the surface is available. 518 // is saved and satisfied once the surface is available.
519 SurfaceCreatedCB pending_surface_request_cb_; 519 SurfaceCreatedCB pending_surface_request_cb_;
520 520
521 // Force to use SurfaceView instead of SurfaceTexture on Android. 521 // Force to use SurfaceView instead of SurfaceTexture on Android.
522 bool force_video_overlays_; 522 bool force_video_overlays_;
523 523
524 // Prevent use of SurfaceView on Android. (Ignored when
525 // |force_video_overlays_| is true.)
526 bool disable_fullscreen_video_overlays_;
527
524 // Suppresses calls to OnPipelineError() after destruction / shutdown has been 528 // Suppresses calls to OnPipelineError() after destruction / shutdown has been
525 // started; prevents us from spuriously logging errors that are transient or 529 // started; prevents us from spuriously logging errors that are transient or
526 // unimportant. 530 // unimportant.
527 bool suppress_destruction_errors_; 531 bool suppress_destruction_errors_;
528 532
529 // State indicating if it's okay to suspend or not. Updated on the first time 533 // State indicating if it's okay to suspend or not. Updated on the first time
530 // OnSuspendRequested() is called. If the state is UNKNOWN, the current frame 534 // OnSuspendRequested() is called. If the state is UNKNOWN, the current frame
531 // from the compositor will be queried to see if suspend is supported; the 535 // from the compositor will be queried to see if suspend is supported; the
532 // state will be set to YES or NO respectively if a frame is available. 536 // state will be set to YES or NO respectively if a frame is available.
533 enum class CanSuspendState { UNKNOWN, YES, NO }; 537 enum class CanSuspendState { UNKNOWN, YES, NO };
534 CanSuspendState can_suspend_state_; 538 CanSuspendState can_suspend_state_;
535 539
536 // Called some-time after OnHidden() if the media was suspended in a playing 540 // Called some-time after OnHidden() if the media was suspended in a playing
537 // state as part of the call to OnHidden(). 541 // state as part of the call to OnHidden().
538 base::OneShotTimer background_pause_timer_; 542 base::OneShotTimer background_pause_timer_;
539 543
540 // Monitors the watch time of the played content. 544 // Monitors the watch time of the played content.
541 std::unique_ptr<WatchTimeReporter> watch_time_reporter_; 545 std::unique_ptr<WatchTimeReporter> watch_time_reporter_;
542 bool is_encrypted_; 546 bool is_encrypted_;
543 547
544 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 548 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
545 }; 549 };
546 550
547 } // namespace media 551 } // namespace media
548 552
549 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 553 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
OLDNEW
« no previous file with comments | « media/base/media_switches.cc ('k') | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698