提交 4a9a42fa 编写于 作者: H h00574155

Decoupling the use of display_type.h in surface

Signed-off-by: Nh00574155 <hujunjian1@huawei.com>
Change-Id: I62a1af65a944dd951c5746fcf2bfed6e3c803566
上级 5bfae602
......@@ -30,7 +30,7 @@ public:
static inline OH_NativeBuffer_Config config = {
.width = 0x100,
.height = 0x100,
.format = PIXEL_FMT_RGBA_8888,
.format = GRAPHIC_PIXEL_FMT_RGBA_8888,
.usage = BUFFER_USAGE_CPU_READ | BUFFER_USAGE_CPU_WRITE | BUFFER_USAGE_MEM_DMA,
};
static inline OH_NativeBuffer_Config checkConfig = {};
......
......@@ -319,7 +319,7 @@ HWTEST_F(NativeImageTest, OHNativeImageUpdateSurfaceImage003, Function | MediumT
std::cout << "NativeWindowHandleOpt SET_STRIDE failed" << std::endl;
}
code = SET_FORMAT;
int32_t format = PIXEL_FMT_RGBA_8888;
int32_t format = GRAPHIC_PIXEL_FMT_RGBA_8888;
ret = NativeWindowHandleOpt(nativeWindow, code, format);
if (ret != GSERROR_OK) {
std::cout << "NativeWindowHandleOpt SET_FORMAT failed" << std::endl;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册