From: Christian König Date: Sat, 7 May 2011 13:00:52 +0000 (+0200) Subject: vdpau: implement PresentationQueueSetBackgroundColor X-Git-Tag: 062012170305~4979^2~71 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cd13ec253ab8befed6ee9ece20ceebed9f73050f;p=profile%2Fivi%2Fmesa.git vdpau: implement PresentationQueueSetBackgroundColor --- diff --git a/src/gallium/state_trackers/vdpau/presentation.c b/src/gallium/state_trackers/vdpau/presentation.c index 2f029f0..02fcfbd 100644 --- a/src/gallium/state_trackers/vdpau/presentation.c +++ b/src/gallium/state_trackers/vdpau/presentation.c @@ -109,10 +109,20 @@ VdpStatus vlVdpPresentationQueueSetBackgroundColor(VdpPresentationQueue presentation_queue, VdpColor *const background_color) { + vlVdpPresentationQueue *pq; + + VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Setting Background Color\n"); + if (!background_color) return VDP_STATUS_INVALID_POINTER; - return VDP_STATUS_NO_IMPLEMENTATION; + pq = vlGetDataHTAB(presentation_queue); + if (!pq) + return VDP_STATUS_INVALID_HANDLE; + + pq->compositor->set_clear_color(pq->compositor, (float*)background_color); + + return VDP_STATUS_OK; } VdpStatus