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

Side by Side Diff: content/renderer/media/webmediaplayer_ms_compositor.h

Issue 2472273002: Move passing of WebRTC rendering frames from main thread to compositor thread (Closed)
Patch Set: wez@ nits. Created 4 years, 1 month 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_WEBMEDIAPLAYER_MS_COMPOSITOR_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_COMPOSITOR_H_
6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_COMPOSITOR_H_ 6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_COMPOSITOR_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // find out what web stream this WebMediaPlayerMSCompositor is playing, and 53 // find out what web stream this WebMediaPlayerMSCompositor is playing, and
54 // together with flag "--disable-rtc-smoothness-algorithm" determine whether 54 // together with flag "--disable-rtc-smoothness-algorithm" determine whether
55 // we enable algorithm or not. 55 // we enable algorithm or not.
56 WebMediaPlayerMSCompositor( 56 WebMediaPlayerMSCompositor(
57 const scoped_refptr<base::SingleThreadTaskRunner>& compositor_task_runner, 57 const scoped_refptr<base::SingleThreadTaskRunner>& compositor_task_runner,
58 const blink::WebMediaStream& web_stream, 58 const blink::WebMediaStream& web_stream,
59 const base::WeakPtr<WebMediaPlayerMS>& player); 59 const base::WeakPtr<WebMediaPlayerMS>& player);
60 60
61 ~WebMediaPlayerMSCompositor() override; 61 ~WebMediaPlayerMSCompositor() override;
62 62
63 void EnqueueFrame(const scoped_refptr<media::VideoFrame>& frame); 63 void EnqueueFrame(scoped_refptr<media::VideoFrame> frame);
64 64
65 // Statistical data 65 // Statistical data
66 gfx::Size GetCurrentSize(); 66 gfx::Size GetCurrentSize();
67 base::TimeDelta GetCurrentTime(); 67 base::TimeDelta GetCurrentTime();
68 size_t total_frame_count() const; 68 size_t total_frame_count() const;
69 size_t dropped_frame_count() const; 69 size_t dropped_frame_count() const;
70 70
71 // VideoFrameProvider implementation. 71 // VideoFrameProvider implementation.
72 void SetVideoFrameProviderClient( 72 void SetVideoFrameProviderClient(
73 cc::VideoFrameProvider::Client* client) override; 73 cc::VideoFrameProvider::Client* client) override;
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 base::Lock current_frame_lock_; 156 base::Lock current_frame_lock_;
157 157
158 // Make sure the weak pointer factory member is the last member of the class. 158 // Make sure the weak pointer factory member is the last member of the class.
159 base::WeakPtrFactory<WebMediaPlayerMSCompositor> weak_ptr_factory_; 159 base::WeakPtrFactory<WebMediaPlayerMSCompositor> weak_ptr_factory_;
160 160
161 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMSCompositor); 161 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMSCompositor);
162 }; 162 };
163 } // namespace content 163 } // namespace content
164 164
165 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_COMPOSITOR_H_ 165 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_COMPOSITOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698