Bug 1222083 - verify that a Skia GL context is actually available before trying to use it in Canvas2D drawImage. r=jmuizelaar

--HG--
extra : rebase_source : 2ddd185d711bc5cbdee08747b2fcc58a66719306
This commit is contained in:
Lee Salzman 2015-11-05 12:33:12 -05:00
parent 49f15c1e44
commit 5338c02793

View File

@ -4402,6 +4402,7 @@ CanvasRenderingContext2D::DrawImage(const CanvasImageSource& image,
#ifdef USE_SKIA_GPU
if (mRenderingMode == RenderingMode::OpenGLBackendMode &&
mIsSkiaGL &&
!srcSurf &&
image.IsHTMLVideoElement() &&
gfxPlatform::GetPlatform()->GetSkiaGLGlue()) {