diff options
Diffstat (limited to 'webkit/glue/webmediaplayer_impl.cc')
-rw-r--r-- | webkit/glue/webmediaplayer_impl.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/webkit/glue/webmediaplayer_impl.cc b/webkit/glue/webmediaplayer_impl.cc index ee6f7b5f..ebdda91 100644 --- a/webkit/glue/webmediaplayer_impl.cc +++ b/webkit/glue/webmediaplayer_impl.cc @@ -15,6 +15,7 @@ #include "webkit/glue/media/video_renderer_impl.h" #include "webkit/glue/webmediaplayer_impl.h" +using WebKit::WebCanvas; using WebKit::WebRect; using WebKit::WebSize; @@ -264,9 +265,7 @@ void WebMediaPlayerImpl::setSize(const WebSize& size) { } } -// TODO(hclam): enable this for mac. -#if WEBKIT_USING_SKIA -void WebMediaPlayerImpl::paint(skia::PlatformCanvas* canvas, +void WebMediaPlayerImpl::paint(WebCanvas* canvas, const WebRect& rect) { DCHECK(main_loop_ && MessageLoop::current() == main_loop_); @@ -274,7 +273,6 @@ void WebMediaPlayerImpl::paint(skia::PlatformCanvas* canvas, video_renderer_->Paint(canvas, rect); } } -#endif void WebMediaPlayerImpl::WillDestroyCurrentMessageLoop() { pipeline_.Stop(); |