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

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

Issue 2625513002: [M56] Turn off video overlay on android for rotated video. (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | 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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 // accessed on the media thread. 352 // accessed on the media thread.
353 void ReportMemoryUsage(); 353 void ReportMemoryUsage();
354 void FinishMemoryUsageReport(int64_t demuxer_memory_usage); 354 void FinishMemoryUsageReport(int64_t demuxer_memory_usage);
355 355
356 // Called during OnHidden() when we want a suspended player to enter the 356 // Called during OnHidden() when we want a suspended player to enter the
357 // paused state after some idle timeout. 357 // paused state after some idle timeout.
358 void ScheduleIdlePauseTimer(); 358 void ScheduleIdlePauseTimer();
359 359
360 void CreateWatchTimeReporter(); 360 void CreateWatchTimeReporter();
361 361
362 // Return whether |pipeline_metadata_| is compatible with an overlay. This
363 // is intended for android.
364 bool DoesOverlaySupportMetadata() const;
365
362 blink::WebLocalFrame* frame_; 366 blink::WebLocalFrame* frame_;
363 367
364 // The playback state last reported to |delegate_|, to avoid setting duplicate 368 // The playback state last reported to |delegate_|, to avoid setting duplicate
365 // states. (Which can have undesired effects like resetting the idle timer.) 369 // states. (Which can have undesired effects like resetting the idle timer.)
366 DelegateState delegate_state_; 370 DelegateState delegate_state_;
367 371
368 // Set when OnSuspendRequested() is called with |must_suspend| unset. 372 // Set when OnSuspendRequested() is called with |must_suspend| unset.
369 bool is_idle_; 373 bool is_idle_;
370 374
371 // Set when OnSuspendRequested() is called with |must_suspend| set. 375 // Set when OnSuspendRequested() is called with |must_suspend| set.
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 583
580 // Whether the player is currently in autoplay muted state. 584 // Whether the player is currently in autoplay muted state.
581 bool autoplay_muted_ = false; 585 bool autoplay_muted_ = false;
582 586
583 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 587 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
584 }; 588 };
585 589
586 } // namespace media 590 } // namespace media
587 591
588 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 592 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698