未验证 提交 6856e408 编写于 作者: O openharmony_ci 提交者: Gitee

!9259 Decoupling the using of display_type.h in surface

Merge pull request !9259 from hujunjian72/master
...@@ -30,7 +30,7 @@ public: ...@@ -30,7 +30,7 @@ public:
static inline OH_NativeBuffer_Config config = { static inline OH_NativeBuffer_Config config = {
.width = 0x100, .width = 0x100,
.height = 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, .usage = BUFFER_USAGE_CPU_READ | BUFFER_USAGE_CPU_WRITE | BUFFER_USAGE_MEM_DMA,
}; };
static inline OH_NativeBuffer_Config checkConfig = {}; static inline OH_NativeBuffer_Config checkConfig = {};
......
...@@ -319,7 +319,7 @@ HWTEST_F(NativeImageTest, OHNativeImageUpdateSurfaceImage003, Function | MediumT ...@@ -319,7 +319,7 @@ HWTEST_F(NativeImageTest, OHNativeImageUpdateSurfaceImage003, Function | MediumT
std::cout << "NativeWindowHandleOpt SET_STRIDE failed" << std::endl; std::cout << "NativeWindowHandleOpt SET_STRIDE failed" << std::endl;
} }
code = SET_FORMAT; code = SET_FORMAT;
int32_t format = PIXEL_FMT_RGBA_8888; int32_t format = GRAPHIC_PIXEL_FMT_RGBA_8888;
ret = NativeWindowHandleOpt(nativeWindow, code, format); ret = NativeWindowHandleOpt(nativeWindow, code, format);
if (ret != GSERROR_OK) { if (ret != GSERROR_OK) {
std::cout << "NativeWindowHandleOpt SET_FORMAT failed" << std::endl; 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.
先完成此消息的编辑!
想要评论请 注册