summaryrefslogtreecommitdiffstats
path: root/webkit/media/webmediaplayer_ms.cc
diff options
context:
space:
mode:
authorskaslev@chromium.org <skaslev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-24 15:13:22 +0000
committerskaslev@chromium.org <skaslev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-24 15:13:22 +0000
commit4dd72d3ca99f6b1234854cfddd88bb0e6e943fc0 (patch)
tree4b2f5937a963b5c1ee9d00cbf47198030958c2f2 /webkit/media/webmediaplayer_ms.cc
parent687931247aecb1c2eab7928f37d6877ce60c2978 (diff)
downloadchromium_src-4dd72d3ca99f6b1234854cfddd88bb0e6e943fc0.zip
chromium_src-4dd72d3ca99f6b1234854cfddd88bb0e6e943fc0.tar.gz
chromium_src-4dd72d3ca99f6b1234854cfddd88bb0e6e943fc0.tar.bz2
Moved SkCanvasVideoRenderer to media/filters.
SkCanvasVideoRenderer will be used for rendering YUV video streams by the software compositor. To avoid circular dependencies cc/ cannot depend on webkit/ hence the move. Also changed the interface of SkCanvasVideoRenderer::Paint to accept gfx::RectF instead of gfx::Rect. The gfx::Rect was converted to a floating point SkRect anyway and we actually use the floating point version from the software compositor. BUG=150016 Review URL: https://chromiumcodereview.appspot.com/11234071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163829 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/media/webmediaplayer_ms.cc')
-rw-r--r--webkit/media/webmediaplayer_ms.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/webkit/media/webmediaplayer_ms.cc b/webkit/media/webmediaplayer_ms.cc
index b634323..740b5ea 100644
--- a/webkit/media/webmediaplayer_ms.cc
+++ b/webkit/media/webmediaplayer_ms.cc
@@ -273,7 +273,8 @@ void WebMediaPlayerMS::paint(WebCanvas* canvas,
DVLOG(3) << "WebMediaPlayerMS::paint";
DCHECK(thread_checker_.CalledOnValidThread());
- video_renderer_.Paint(current_frame_, canvas, rect, alpha);
+ gfx::RectF dest_rect(rect.x, rect.y, rect.width, rect.height);
+ video_renderer_.Paint(current_frame_, canvas, dest_rect, alpha);
}
bool WebMediaPlayerMS::hasSingleSecurityOrigin() const {