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:
youbing
2022-10-17 16:04:50 +08:00
parent 1af42b0b35
commit 209c877168
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -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_;
+1 -1
View File
@@ -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();
+1 -1
View File
@@ -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();
}
+3 -3
View File
@@ -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();