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

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

Issue 445013002: media: Optimize HW Video to 2D Canvas copy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix cc unittests Created 6 years, 4 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 CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_
6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ 6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "base/synchronization/lock.h" 11 #include "base/synchronization/lock.h"
12 #include "base/threading/thread_checker.h" 12 #include "base/threading/thread_checker.h"
13 #include "cc/layers/video_frame_provider.h" 13 #include "cc/layers/video_frame_provider.h"
14 #include "media/filters/skcanvas_video_renderer.h" 14 #include "cc/resources/media/skcanvas_video_renderer.h"
15 #include "skia/ext/platform_canvas.h" 15 #include "skia/ext/platform_canvas.h"
16 #include "third_party/WebKit/public/platform/WebMediaPlayer.h" 16 #include "third_party/WebKit/public/platform/WebMediaPlayer.h"
17 #include "url/gurl.h" 17 #include "url/gurl.h"
18 18
19 namespace blink { 19 namespace blink {
20 class WebFrame; 20 class WebFrame;
21 class WebMediaPlayerClient; 21 class WebMediaPlayerClient;
22 } 22 }
23 23
24 namespace media { 24 namespace media {
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 scoped_ptr<WebLayerImpl> video_weblayer_; 169 scoped_ptr<WebLayerImpl> video_weblayer_;
170 170
171 // A pointer back to the compositor to inform it about state changes. This is 171 // A pointer back to the compositor to inform it about state changes. This is
172 // not NULL while the compositor is actively using this webmediaplayer. 172 // not NULL while the compositor is actively using this webmediaplayer.
173 cc::VideoFrameProvider::Client* video_frame_provider_client_; 173 cc::VideoFrameProvider::Client* video_frame_provider_client_;
174 174
175 bool received_first_frame_; 175 bool received_first_frame_;
176 base::TimeDelta current_time_; 176 base::TimeDelta current_time_;
177 unsigned total_frame_count_; 177 unsigned total_frame_count_;
178 unsigned dropped_frame_count_; 178 unsigned dropped_frame_count_;
179 media::SkCanvasVideoRenderer video_renderer_; 179 cc::SkCanvasVideoRenderer video_renderer_;
180 180
181 scoped_refptr<MediaStreamAudioRenderer> audio_renderer_; 181 scoped_refptr<MediaStreamAudioRenderer> audio_renderer_;
182 182
183 scoped_refptr<media::MediaLog> media_log_; 183 scoped_refptr<media::MediaLog> media_log_;
184 184
185 scoped_ptr<MediaStreamRendererFactory> renderer_factory_; 185 scoped_ptr<MediaStreamRendererFactory> renderer_factory_;
186 186
187 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); 187 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS);
188 }; 188 };
189 189
190 } // namespace content 190 } // namespace content
191 191
192 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ 192 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698