summaryrefslogtreecommitdiffstats
path: root/chrome/gpu
diff options
context:
space:
mode:
authorhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-21 23:20:40 +0000
committerhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-21 23:20:40 +0000
commit79297e50bc383232cf53c4ac2323db28193c58f4 (patch)
treefeb5ff0503233bd2e4261108acf24b8c426ed02a /chrome/gpu
parent767718e56d9952608e58c8e65568877f95820baa (diff)
downloadchromium_src-79297e50bc383232cf53c4ac2323db28193c58f4.zip
chromium_src-79297e50bc383232cf53c4ac2323db28193c58f4.tar.gz
chromium_src-79297e50bc383232cf53c4ac2323db28193c58f4.tar.bz2
SendAllocateVideoFrames to the renderer
This is separated from a previous patch due to link error on mac. BUG=53714 TEST=Mac build bots are happy Review URL: http://codereview.chromium.org/3414011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60126 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/gpu')
-rw-r--r--chrome/gpu/gpu_video_decoder.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/gpu/gpu_video_decoder.cc b/chrome/gpu/gpu_video_decoder.cc
index 91758e0..bf5881ed 100644
--- a/chrome/gpu/gpu_video_decoder.cc
+++ b/chrome/gpu/gpu_video_decoder.cc
@@ -343,7 +343,11 @@ void GpuVideoDecoder::SendFillBufferDone(
void GpuVideoDecoder::SendAllocateVideoFrames(
int n, size_t width, size_t height, media::VideoFrame::Format format) {
- // TODO(hclam): Actually send the message.
+ if (!channel_->Send(
+ new GpuVideoDecoderHostMsg_AllocateVideoFrames(
+ route_id(), n, width, height, format))) {
+ LOG(ERROR) << "GpuVideoDecoderMsg_AllocateVideoFrames failed";
+ }
}
void GpuVideoDecoder::SendReleaseAllVideoFrames() {