compositor: merge surface size from buffer size funcs
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Tue, 26 Nov 2013 17:19:43 +0000 (18:19 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 28 Nov 2013 22:14:10 +0000 (14:14 -0800)
commitda75ee1de02d78305835af24bd7075c85f0b1bfb
tree75736c9422256ff6cd176c5272fe874c73ff9263
parentba34165ce23b857d9b190b249309151972539bea
compositor: merge surface size from buffer size funcs

Replace the two functions getting the intended surface dimensions from
the surface's buffer and buffer transformation parameters by a single
function that just set the surface size according to all the buffer
state.

The old functions were always called in pairs, and always assigned to
the surface dimension variables.

This function also deals with a NULL buffer by setting the dimensions to
zero, just like the callers used to do.

The new function has no users outside this source file, so do not export
it. This basically unexports the old functions.
src/compositor.c
src/compositor.h