Bug 1177807 - Mark cairo surface dirty in ReleaseBits. r=jrmuizel

This commit is contained in:
Andrew Comminos 2015-06-26 11:34:00 +02:00
parent 80ff4083d9
commit 1b5125d97b

View File

@ -702,6 +702,7 @@ DrawTargetCairo::LockBits(uint8_t** aData, IntSize* aSize,
{
if (cairo_surface_get_type(mSurface) == CAIRO_SURFACE_TYPE_IMAGE) {
WillChange();
Flush();
mLockedBits = cairo_image_surface_get_data(mSurface);
*aData = mLockedBits;
@ -719,6 +720,7 @@ DrawTargetCairo::ReleaseBits(uint8_t* aData)
{
MOZ_ASSERT(mLockedBits == aData);
mLockedBits = nullptr;
cairo_surface_mark_dirty(mSurface);
}
void