shell: Bypass fullscreen scaling if surface width and height match output
authorRob Bradford <rob@linux.intel.com>
Tue, 12 Feb 2013 11:53:47 +0000 (11:53 +0000)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 14 Feb 2013 21:06:02 +0000 (16:06 -0500)
commitfd5654baae575bb9dab60641b3d547368ab1c267
treed13824f265cde4f6a8cdb0458e64a9356a9b46e0
parent9fc4c3c98b1cb49566365bdbd3c69d356b353b64
shell: Bypass fullscreen scaling if surface width and height match output

If our surface has width and height set to the same dimensions as the output
then we can bypassing the scale factor calculation and addition of the
transformation.

The use case that led to this optimisation is the playback of video using
gstreamer-vaapi with the "scale" method. The video is the same dimensions as
the output (1080p.)
src/shell.c