am 4d407a0f: surfaceflinger: Trace HW vsync enable

* commit '4d407a0f05ad9ba3c232ff5b6742495660c0e4ab':
  surfaceflinger: Trace HW vsync enable
This commit is contained in:
Jesse Hall 2014-08-26 14:46:20 +00:00 committed by Android Git Automerger
commit d1a65da9e8

View File

@ -524,6 +524,10 @@ void HWComposer::eventControl(int disp, int event, int enabled) {
if (!err) {
int32_t& events(mDisplayData[disp].events);
events = (events & ~eventBit) | newValue;
char tag[16];
snprintf(tag, sizeof(tag), "HW_VSYNC_ON_%1u", disp);
ATRACE_INT(tag, enabled);
}
}
// error here should not happen -- not sure what we should