graphics.c: match AOSP api

Change-Id: I4842f4697767798892e7a782594f93c0f23adb47