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

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

Issue 1907753002: Make the video layer contents visible in OverlayFullscreenVideo mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clarified comment 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
« 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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 // Size of the video. 340 // Size of the video.
341 blink::WebSize natural_size_; 341 blink::WebSize natural_size_;
342 342
343 // Size that has been sent to gpu::StreamTexture. 343 // Size that has been sent to gpu::StreamTexture.
344 blink::WebSize cached_stream_texture_size_; 344 blink::WebSize cached_stream_texture_size_;
345 345
346 // The video frame object used for rendering by the compositor. 346 // The video frame object used for rendering by the compositor.
347 scoped_refptr<media::VideoFrame> current_frame_; 347 scoped_refptr<media::VideoFrame> current_frame_;
348 base::Lock current_frame_lock_; 348 base::Lock current_frame_lock_;
349 349
350 // A lazily created transparent video frame to be displayed in fullscreen.
351 scoped_refptr<media::VideoFrame> fullscreen_frame_;
352
350 base::ThreadChecker main_thread_checker_; 353 base::ThreadChecker main_thread_checker_;
351 354
352 // Message loop for media thread. 355 // Message loop for media thread.
353 const scoped_refptr<base::SingleThreadTaskRunner> media_task_runner_; 356 const scoped_refptr<base::SingleThreadTaskRunner> media_task_runner_;
354 357
355 // URL of the media file to be fetched. 358 // URL of the media file to be fetched.
356 GURL url_; 359 GURL url_;
357 360
358 // URL of the media file after |media_info_loader_| resolves all the 361 // URL of the media file after |media_info_loader_| resolves all the
359 // redirections. 362 // redirections.
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 518
516 // NOTE: Weak pointers must be invalidated before all other member variables. 519 // NOTE: Weak pointers must be invalidated before all other member variables.
517 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; 520 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_;
518 521
519 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); 522 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid);
520 }; 523 };
521 524
522 } // namespace content 525 } // namespace content
523 526
524 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 527 #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