CpuConsumer: fix build error
This commit is contained in:
parent
bacce71e40
commit
b3ca72ce1e
@ -22,7 +22,7 @@
|
|||||||
#include <utils/Log.h>
|
#include <utils/Log.h>
|
||||||
#include <gui/CpuConsumer.h>
|
#include <gui/CpuConsumer.h>
|
||||||
|
|
||||||
//#define CC_LOGV(x, ...) ALOGV("[%s] " x, mName.string(), ##__VA_ARGS__)
|
#define CC_LOGV(x, ...) ALOGV("[%s] " x, mName.string(), ##__VA_ARGS__)
|
||||||
//#define CC_LOGD(x, ...) ALOGD("[%s] " x, mName.string(), ##__VA_ARGS__)
|
//#define CC_LOGD(x, ...) ALOGD("[%s] " x, mName.string(), ##__VA_ARGS__)
|
||||||
//#define CC_LOGI(x, ...) ALOGI("[%s] " x, mName.string(), ##__VA_ARGS__)
|
//#define CC_LOGI(x, ...) ALOGI("[%s] " x, mName.string(), ##__VA_ARGS__)
|
||||||
#define CC_LOGW(x, ...) ALOGW("[%s] " x, mName.string(), ##__VA_ARGS__)
|
#define CC_LOGW(x, ...) ALOGW("[%s] " x, mName.string(), ##__VA_ARGS__)
|
||||||
@ -68,7 +68,7 @@ status_t CpuConsumer::setDefaultBufferFormat(PixelFormat defaultFormat)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static bool isPossiblyYUV(PixelFormat format) {
|
static bool isPossiblyYUV(PixelFormat format) {
|
||||||
switch ((int)format) {
|
switch (static_cast<int>(format)) {
|
||||||
case HAL_PIXEL_FORMAT_RGBA_8888:
|
case HAL_PIXEL_FORMAT_RGBA_8888:
|
||||||
case HAL_PIXEL_FORMAT_RGBX_8888:
|
case HAL_PIXEL_FORMAT_RGBX_8888:
|
||||||
case HAL_PIXEL_FORMAT_RGB_888:
|
case HAL_PIXEL_FORMAT_RGB_888:
|
||||||
|
Loading…
Reference in New Issue
Block a user