mirror of
https://github.com/openharmony/graphic_wms.git
synced 2026-06-30 22:08:36 -04:00
Description: Code alarm processing#4
IssueNo: https://gitee.com/openharmony/graphic_ui/issues/I5W2LG Feature or Bugfix: Bugfix Binary Source:No Signed-off-by: youbing54<youbing3@huawei.com>
This commit is contained in:
@@ -26,8 +26,8 @@ public:
|
||||
explicit LiteProxySurface(Surface* surface);
|
||||
virtual ~LiteProxySurface();
|
||||
|
||||
virtual void Lock(void** buf, void** phyMem, uint32_t* strideLen) override;
|
||||
virtual void Unlock() override;
|
||||
void Lock(void** buf, void** phyMem, uint32_t* strideLen) override;
|
||||
void Unlock() override;
|
||||
|
||||
private:
|
||||
SurfaceBuffer* buffer_;
|
||||
|
||||
@@ -31,7 +31,7 @@ public:
|
||||
static int32_t WmsMsgHandler(uint32_t code, IpcIo* data, IpcIo* reply, MessageOption option);
|
||||
static int32_t SurfaceRequestHandler(uint32_t code, IpcIo* data, IpcIo* reply, MessageOption option);
|
||||
|
||||
virtual void OnBufferAvailable() override;
|
||||
void OnBufferAvailable() override;
|
||||
|
||||
void ClientRegister();
|
||||
void GetLayerInfo();
|
||||
|
||||
@@ -50,7 +50,7 @@ LiteWindow::LiteWindow(const LiteWinConfig& config)
|
||||
: id_(INVALID_WINDOW_ID), pid_(INVALID_PID), isShow_(false), config_(config), surface_(nullptr),
|
||||
backBuf_(nullptr), sid_({}), needUnregister_(false)
|
||||
{
|
||||
pthread_mutex_init(&backBufMutex_, NULL);
|
||||
pthread_mutex_init(&backBufMutex_, nullptr);
|
||||
id_ = LiteWM::GetInstance()->GetUniqueWinId();
|
||||
}
|
||||
|
||||
|
||||
@@ -101,9 +101,9 @@ LiteWM::LiteWM()
|
||||
needScreenshot_(false), screenshotSurface_(nullptr), winIdStorage(0)
|
||||
{
|
||||
InitMutex(stackLock_, PTHREAD_MUTEX_RECURSIVE);
|
||||
pthread_mutex_init(&mouseLock_, NULL);
|
||||
pthread_mutex_init(&eventLock_, NULL);
|
||||
pthread_mutex_init(&screenshotMutex_, NULL);
|
||||
pthread_mutex_init(&mouseLock_, nullptr);
|
||||
pthread_mutex_init(&eventLock_, nullptr);
|
||||
pthread_mutex_init(&screenshotMutex_, nullptr);
|
||||
|
||||
InputManagerService::GetInstance()->GetDistributer()->AddRawEventListener(this);
|
||||
InitMouseCursor();
|
||||
|
||||
Reference in New Issue
Block a user