Bug 1060790 - Call glFlush() to SkiaGL's GLContext on memory-pressure r=gw280

This commit is contained in:
Sotaro Ikeda 2014-09-02 18:49:06 -07:00
parent 6486a1bccd
commit 567e76c4bc

View File

@ -905,6 +905,9 @@ gfxPlatform::PurgeSkiaCache()
return;
mSkiaGlue->GetGrContext()->freeGpuResources();
// GrContext::flush() doesn't call glFlush. Call it here.
mSkiaGlue->GetGLContext()->MakeCurrent();
mSkiaGlue->GetGLContext()->fFlush();
#endif
}