提交 af97666c 编写于 作者: M mingzhu_pearl

separate IConsumerSurface from Surface -- Surface Refactoring step 1

Signed-off-by: Nmingzhu_pearl <limingzhu10@huawei.com>
Change-Id: I4cfd0d55001c7e992d041b5f5af5eddc44030a99
上级 8856bcf1
...@@ -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;
...@@ -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.
先完成此消息的编辑!
想要评论请 注册