Bug 1240177 - fix SourceSurfaceSkia::DrawTargetWillChange deepCopyTo usage. r=mattwoodrow, a=ritu

This commit is contained in:
Lee Salzman 2016-04-12 01:28:31 -04:00
parent 40a46c1c2e
commit 7373e542f6

View File

@ -135,7 +135,7 @@ SourceSurfaceSkia::DrawTargetWillChange()
// First try a deep copy to avoid a readback from the GPU.
// If that fails, try the CPU copy.
if (!mBitmap.deepCopyTo(&mBitmap) ||
if (!mBitmap.deepCopyTo(&mBitmap) &&
!mBitmap.copyTo(&mBitmap)) {
mBitmap.reset();
}