OSDN Git Service

Use snprintf for SurfaceFlinger fence name
authorMatthew Bouyack <mbouyack@google.com>
Fri, 7 Oct 2016 21:26:47 +0000 (14:26 -0700)
committerMatthew Bouyack <mbouyack@google.com>
Fri, 7 Oct 2016 22:51:19 +0000 (15:51 -0700)
commitfd4c8c38051f9dad028e4e43e0eb39ba412b2c0a
treee4788b9fbd47754d739ef16aba926738979ac2d8
parent3169437feb387b56499208464960d281bd9b87c9
Use snprintf for SurfaceFlinger fence name

snprintf is significantly faster than String8::format
This change saves ~50us per frame on Android Wear

Change-Id: I6ac47c2434662ca561208daae232f02a9f136aaf
include/ui/Fence.h
libs/gui/ConsumerBase.cpp
libs/ui/Fence.cpp