Loading libs/gui/include/gui/BufferQueueCore.h +8 −7 Original line number Original line Diff line number Diff line Loading @@ -41,12 +41,13 @@ #define BQ_LOGE(x, ...) ALOGE("[%s] " x, mConsumerName.string(), ##__VA_ARGS__) #define BQ_LOGE(x, ...) ALOGE("[%s] " x, mConsumerName.string(), ##__VA_ARGS__) #define ATRACE_BUFFER_INDEX(index) \ #define ATRACE_BUFFER_INDEX(index) \ do { \ if (ATRACE_ENABLED()) { \ if (ATRACE_ENABLED()) { \ char ___traceBuf[1024]; \ char ___traceBuf[1024]; \ snprintf(___traceBuf, 1024, "%s: %d", \ snprintf(___traceBuf, 1024, "%s: %d", mCore->mConsumerName.string(), (index)); \ mCore->mConsumerName.string(), (index)); \ android::ScopedTrace ___bufTracer(ATRACE_TAG, ___traceBuf); \ android::ScopedTrace ___bufTracer(ATRACE_TAG, ___traceBuf); \ } } \ } while (false) namespace android { namespace android { Loading Loading
libs/gui/include/gui/BufferQueueCore.h +8 −7 Original line number Original line Diff line number Diff line Loading @@ -41,12 +41,13 @@ #define BQ_LOGE(x, ...) ALOGE("[%s] " x, mConsumerName.string(), ##__VA_ARGS__) #define BQ_LOGE(x, ...) ALOGE("[%s] " x, mConsumerName.string(), ##__VA_ARGS__) #define ATRACE_BUFFER_INDEX(index) \ #define ATRACE_BUFFER_INDEX(index) \ do { \ if (ATRACE_ENABLED()) { \ if (ATRACE_ENABLED()) { \ char ___traceBuf[1024]; \ char ___traceBuf[1024]; \ snprintf(___traceBuf, 1024, "%s: %d", \ snprintf(___traceBuf, 1024, "%s: %d", mCore->mConsumerName.string(), (index)); \ mCore->mConsumerName.string(), (index)); \ android::ScopedTrace ___bufTracer(ATRACE_TAG, ___traceBuf); \ android::ScopedTrace ___bufTracer(ATRACE_TAG, ___traceBuf); \ } } \ } while (false) namespace android { namespace android { Loading