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

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

Issue 2297973002: WMPI: Add base::Feature for disabling SurfaceViews. (Closed)
Patch Set: 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
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.
525 bool disable_video_overlays_;
526
524 // Suppresses calls to OnPipelineError() after destruction / shutdown has been 527 // Suppresses calls to OnPipelineError() after destruction / shutdown has been
525 // started; prevents us from spuriously logging errors that are transient or 528 // started; prevents us from spuriously logging errors that are transient or
526 // unimportant. 529 // unimportant.
527 bool suppress_destruction_errors_; 530 bool suppress_destruction_errors_;
528 531
529 // State indicating if it's okay to suspend or not. Updated on the first time 532 // 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 533 // 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 534 // 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. 535 // state will be set to YES or NO respectively if a frame is available.
533 enum class CanSuspendState { UNKNOWN, YES, NO }; 536 enum class CanSuspendState { UNKNOWN, YES, NO };
534 CanSuspendState can_suspend_state_; 537 CanSuspendState can_suspend_state_;
535 538
536 // Called some-time after OnHidden() if the media was suspended in a playing 539 // Called some-time after OnHidden() if the media was suspended in a playing
537 // state as part of the call to OnHidden(). 540 // state as part of the call to OnHidden().
538 base::OneShotTimer background_pause_timer_; 541 base::OneShotTimer background_pause_timer_;
539 542
540 // Monitors the watch time of the played content. 543 // Monitors the watch time of the played content.
541 std::unique_ptr<WatchTimeReporter> watch_time_reporter_; 544 std::unique_ptr<WatchTimeReporter> watch_time_reporter_;
542 bool is_encrypted_; 545 bool is_encrypted_;
543 546
544 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 547 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
545 }; 548 };
546 549
547 } // namespace media 550 } // namespace media
548 551
549 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 552 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698