зеркало из https://github.com/mozilla/gecko-dev.git
Bug 989375 - Fix basic layer readback with SkiaGL canvases r=gwright
This commit is contained in:
Родитель
13f4429374
Коммит
aa42b77f33
|
@ -99,7 +99,13 @@ CopyableCanvasLayer::UpdateTarget(DrawTarget* aDestTarget)
|
|||
RefPtr<DataSourceSurface> readSurf;
|
||||
RefPtr<SourceSurface> resultSurf;
|
||||
|
||||
SharedSurface_GL* sharedSurf = mGLContext->RequestFrame();
|
||||
SharedSurface_GL* sharedSurf = nullptr;
|
||||
if (mStream) {
|
||||
sharedSurf = SharedSurface_GL::Cast(mStream->SwapConsumer());
|
||||
} else {
|
||||
sharedSurf = mGLContext->RequestFrame();
|
||||
}
|
||||
|
||||
if (!sharedSurf) {
|
||||
NS_WARNING("Null frame received.");
|
||||
return;
|
||||
|
|
Загрузка…
Ссылка в новой задаче