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

!7445 xts_acts——Surface Refactoring step 1:separate IConsumerSurface from Surface

Merge pull request !7445 from MingZhu/lmz_remote
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include "surface_type.h" #include "surface_type.h"
#include "buffer_log.h" #include "buffer_log.h"
#include "external_window.h" #include "external_window.h"
#include "iconsumer_surface.h"
using namespace testing; using namespace testing;
using namespace testing::ext; using namespace testing::ext;
...@@ -72,7 +73,7 @@ public: ...@@ -72,7 +73,7 @@ public:
static inline BufferRequestConfig requestConfig = {}; static inline BufferRequestConfig requestConfig = {};
static inline BufferFlushConfig flushConfig = {}; static inline BufferFlushConfig flushConfig = {};
static inline sptr<OHOS::Surface> cSurface = nullptr; static inline sptr<OHOS::IConsumerSurface> cSurface = nullptr;
static inline sptr<OHOS::IBufferProducer> producer = nullptr; static inline sptr<OHOS::IBufferProducer> producer = nullptr;
static inline sptr<OHOS::Surface> pSurface = nullptr; static inline sptr<OHOS::Surface> pSurface = nullptr;
static inline sptr<OHOS::SurfaceBuffer> sBuffer = nullptr; static inline sptr<OHOS::SurfaceBuffer> sBuffer = nullptr;
...@@ -92,7 +93,7 @@ void NativeWindowTest::SetUpTestCase() ...@@ -92,7 +93,7 @@ void NativeWindowTest::SetUpTestCase()
.timeout = 0, .timeout = 0,
}; };
cSurface = Surface::CreateSurfaceAsConsumer(); cSurface = IConsumerSurface::Create();
sptr<IBufferConsumerListener> listener = new BufferConsumerListener(); sptr<IBufferConsumerListener> listener = new BufferConsumerListener();
cSurface->RegisterConsumerListener(listener); cSurface->RegisterConsumerListener(listener);
producer = cSurface->GetProducer(); producer = cSurface->GetProducer();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册