SHM: Don't flush damage when there is none
authorDaniel Stone <daniel@fooishbar.org>
Wed, 7 Nov 2012 06:51:42 +0000 (17:51 +1100)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 8 Nov 2012 16:31:37 +0000 (11:31 -0500)
commitc31f3dd6797ee9a39c3c8714d86703ff7c93da93
tree0d43f0d7b541f966644204aa19bbb41a59279310
parent8097274ce65a607530307921f9766dfe210acd66
SHM: Don't flush damage when there is none

Every single frame, we were calling the flush_damage handler in the
renderer.  For GLES2 with subimage, this wasn't too bad as we'd never
call glTexSubImage2D, but without it, we'd upload the entire frame
through glTexImage2D every time.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
src/compositor.c