Bug 1234485 - Part 12. Lock MaskImageData::mTextureClient by OpenMode::OPEN_WRITE type.
No matter css mask or round-clip mask, we actually only write data onto the
destination image layer without readback.
MozReview-Commit-ID: Fx839HIFzn0
--- a/layout/base/FrameLayerBuilder.cpp
+++ b/layout/base/FrameLayerBuilder.cpp
@@ -1694,17 +1694,17 @@ public:
mSize,
BackendSelector::Content,
TextureFlags::DISALLOW_BIGIMAGE,
TextureAllocationFlags::ALLOC_CLEAR_BUFFER);
if (!mTextureClient) {
return nullptr;
}
- mTextureClientLocked = mTextureClient->Lock(OpenMode::OPEN_READ_WRITE);
+ mTextureClientLocked = mTextureClient->Lock(OpenMode::OPEN_WRITE);
if (!mTextureClientLocked) {
return nullptr;
}
mDrawTarget = mTextureClient->BorrowDrawTarget();
return mDrawTarget;
}