Bug 1593319 - Set aFboId in DCLayerTree::Bind() r=gw,nical
authorsotaro <sotaro.ikeda.g@gmail.com>
Tue, 05 Nov 2019 09:07:11 +0000
changeset 500572 7612b140db29774d27160e786236df6bc7560fcf
parent 500571 e7c9a7ee428bc7c9e171e12e5b118e27200232e6
child 500573 bcf6c19bc21a056b0fec66b49fd520f906682aae
push id114166
push userapavel@mozilla.com
push dateThu, 07 Nov 2019 10:04:01 +0000
treeherdermozilla-inbound@d271c572a9bc [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgw, nical
bugs1593319
milestone72.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1593319 - Set aFboId in DCLayerTree::Bind() r=gw,nical EGLSurface could be bound only to framebuffer-zero. Differential Revision: https://phabricator.services.mozilla.com/D51774
gfx/webrender_bindings/DCLayerTree.cpp
--- a/gfx/webrender_bindings/DCLayerTree.cpp
+++ b/gfx/webrender_bindings/DCLayerTree.cpp
@@ -178,16 +178,18 @@ void DCLayerTree::Bind(wr::NativeSurface
   }
 
   const auto layer = it->second.get();
 
   layer->CreateEGLSurfaceForCompositionSurface(aOffset);
   MOZ_ASSERT(layer->GetEGLSurface() != EGL_NO_SURFACE);
   gl::GLContextEGL::Cast(mGL)->SetEGLSurfaceOverride(layer->GetEGLSurface());
   mCurrentId = Some(aId);
+
+  *aFboId = 0;
 }
 
 void DCLayerTree::Unbind() {
   const auto& gle = gl::GLContextEGL::Cast(mGL);
   gle->SetEGLSurfaceOverride(EGL_NO_SURFACE);
 
   if (mCurrentId.isNothing()) {
     return;