Bug 869331 - Flush the SkiaGL canvas before right present. r=gw280

This commit is contained in:
Chiajung Hung 2013-05-14 08:31:59 -04:00
parent 0a4b48546d
commit eec514e788

View File

@ -441,6 +441,11 @@ public:
static_cast<CanvasRenderingContext2DUserData*>(aData);
CanvasRenderingContext2D* context = self->mContext;
if (self->mContext && context->mGLContext) {
if (self->mContext->mTarget != nullptr) {
// Since SkiaGL default to store drawing command until flush
// We will have to flush it before present.
self->mContext->mTarget->Flush();
}
context->mGLContext->MakeCurrent();
context->mGLContext->PublishFrame();
}