Review URL: https://codereview.appspot.com/6499051/
git-svn-id: http://skia.googlecode.com/svn/trunk@5338
2bbb7eff-a529-9590-31e7-
b0007b416f81
fDeviceCMDirty = true;
fLocalBoundsCompareTypeDirty = true;
+ // Dirty this pointer to handle the case of a new device created at the same address as the
+ // device we are restoring from. E.g.:
+ // saveLayer (creates a device)
+ // drawSomething
+ // restore (deletes the device)
+ // saveLayer (oops new device at the same address)
+ fLastDeviceToGainFocus = NULL;
fClipStack.restore();
// reserve our layer (if any)