mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1038855, part 1 - Use an nsRefPtr for AsyncPanZoomController::mSharedFrameMetricsBuffer. r=bjacob
This commit is contained in:
parent
90a513401f
commit
f37d0cf3c0
@ -723,7 +723,6 @@ AsyncPanZoomController::AsyncPanZoomController(uint64_t aLayersId,
|
||||
mTreeManager(aTreeManager),
|
||||
mScrollParentId(FrameMetrics::NULL_SCROLL_ID),
|
||||
mAPZCId(sAsyncPanZoomControllerCount++),
|
||||
mSharedFrameMetricsBuffer(nullptr),
|
||||
mSharedLock(nullptr)
|
||||
{
|
||||
MOZ_COUNT_CTOR(AsyncPanZoomController);
|
||||
@ -791,7 +790,6 @@ AsyncPanZoomController::Destroy()
|
||||
|
||||
{ // scope the lock
|
||||
ReentrantMonitorAutoEnter lock(mMonitor);
|
||||
delete mSharedFrameMetricsBuffer;
|
||||
mSharedFrameMetricsBuffer = nullptr;
|
||||
delete mSharedLock;
|
||||
mSharedLock = nullptr;
|
||||
|
@ -968,7 +968,7 @@ private:
|
||||
* shared FrameMeterics used in progressive tile painting. */
|
||||
const uint32_t mAPZCId;
|
||||
|
||||
ipc::SharedMemoryBasic* mSharedFrameMetricsBuffer;
|
||||
nsRefPtr<ipc::SharedMemoryBasic> mSharedFrameMetricsBuffer;
|
||||
CrossProcessMutex* mSharedLock;
|
||||
/**
|
||||
* Called when ever mFrameMetrics is updated so that if it is being
|
||||
|
Loading…
Reference in New Issue
Block a user