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

Side by Side Diff: content/renderer/media/android/webmediaplayer_android.h

Issue 2084223002: Make the video layer visibility configurable in OverlayFullscreenVideo mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | content/renderer/media/android/webmediaplayer_android.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 CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 blink::WebMediaPlayerEncryptedMediaClient* encrypted_client, 94 blink::WebMediaPlayerEncryptedMediaClient* encrypted_client,
95 base::WeakPtr<media::WebMediaPlayerDelegate> delegate, 95 base::WeakPtr<media::WebMediaPlayerDelegate> delegate,
96 RendererMediaPlayerManager* player_manager, 96 RendererMediaPlayerManager* player_manager,
97 scoped_refptr<StreamTextureFactory> factory, 97 scoped_refptr<StreamTextureFactory> factory,
98 int frame_id, 98 int frame_id,
99 bool enable_texture_copy, 99 bool enable_texture_copy,
100 const media::WebMediaPlayerParams& params); 100 const media::WebMediaPlayerParams& params);
101 ~WebMediaPlayerAndroid() override; 101 ~WebMediaPlayerAndroid() override;
102 102
103 // blink::WebMediaPlayer implementation. 103 // blink::WebMediaPlayer implementation.
104 bool supportsOverlayFullscreenVideo() override; 104 WebMediaPlayer::OverlayFullscreenVideoMode getOverlayFullscreenVideoMode()
105 override;
105 void enteredFullscreen() override; 106 void enteredFullscreen() override;
106 107
107 // Resource loading. 108 // Resource loading.
108 void load(LoadType load_type, 109 void load(LoadType load_type,
109 const blink::WebMediaPlayerSource& source, 110 const blink::WebMediaPlayerSource& source,
110 CORSMode cors_mode) override; 111 CORSMode cors_mode) override;
111 112
112 // Playback controls. 113 // Playback controls.
113 void play() override; 114 void play() override;
114 void pause() override; 115 void pause() override;
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 // Size of the video. 341 // Size of the video.
341 blink::WebSize natural_size_; 342 blink::WebSize natural_size_;
342 343
343 // Size that has been sent to gpu::StreamTexture. 344 // Size that has been sent to gpu::StreamTexture.
344 blink::WebSize cached_stream_texture_size_; 345 blink::WebSize cached_stream_texture_size_;
345 346
346 // The video frame object used for rendering by the compositor. 347 // The video frame object used for rendering by the compositor.
347 scoped_refptr<media::VideoFrame> current_frame_; 348 scoped_refptr<media::VideoFrame> current_frame_;
348 base::Lock current_frame_lock_; 349 base::Lock current_frame_lock_;
349 350
350 // A lazily created transparent video frame to be displayed in fullscreen.
351 scoped_refptr<media::VideoFrame> fullscreen_frame_;
352
353 base::ThreadChecker main_thread_checker_; 351 base::ThreadChecker main_thread_checker_;
354 352
355 // Message loop for media thread. 353 // Message loop for media thread.
356 const scoped_refptr<base::SingleThreadTaskRunner> media_task_runner_; 354 const scoped_refptr<base::SingleThreadTaskRunner> media_task_runner_;
357 355
358 // URL of the media file to be fetched. 356 // URL of the media file to be fetched.
359 GURL url_; 357 GURL url_;
360 358
361 // URL of the media file after |media_info_loader_| resolves all the 359 // URL of the media file after |media_info_loader_| resolves all the
362 // redirections. 360 // redirections.
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 516
519 // NOTE: Weak pointers must be invalidated before all other member variables. 517 // NOTE: Weak pointers must be invalidated before all other member variables.
520 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; 518 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_;
521 519
522 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); 520 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid);
523 }; 521 };
524 522
525 } // namespace content 523 } // namespace content
526 524
527 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 525 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/android/webmediaplayer_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698