Bug 923309 - Don't flush CGContext drawing to the window when we're only meant to be completing any pending drawing. r=Bas

This commit is contained in:
Matt Woodrow 2013-10-10 17:44:09 +13:00
parent 7bd3e5e22f
commit a567cd9101

View File

@ -1270,7 +1270,9 @@ DrawTargetCG::Init(BackendType aType,
void void
DrawTargetCG::Flush() DrawTargetCG::Flush()
{ {
CGContextFlush(mCg); if (GetContextType(mCg) == CG_CONTEXT_TYPE_IOSURFACE) {
CGContextFlush(mCg);
}
} }
bool bool