From 1beb6433509a2cb4642521769bdc279c5a876881 Mon Sep 17 00:00:00 2001 From: sotaro Date: Mon, 24 May 2021 21:47:30 +0000 Subject: [PATCH] Bug 1704000 - Request rendering for RenderCompositorOGLSWGL::MaybeReadback() r=gfx-reviewers,bradwerth Differential Revision: https://phabricator.services.mozilla.com/D115778 --- gfx/webrender_bindings/RenderCompositorOGLSWGL.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gfx/webrender_bindings/RenderCompositorOGLSWGL.h b/gfx/webrender_bindings/RenderCompositorOGLSWGL.h index 5073e40c5ab1..74aea775d731 100644 --- a/gfx/webrender_bindings/RenderCompositorOGLSWGL.h +++ b/gfx/webrender_bindings/RenderCompositorOGLSWGL.h @@ -35,6 +35,11 @@ class RenderCompositorOGLSWGL : public RenderCompositorLayersSWGL { bool BeginFrame() override; RenderedFrameId EndFrame(const nsTArray& aDirtyRects) override; + // Returns true for requesting rendering during readback. + // RenderCompositorOGLSWGL::MaybeReadback() requests rendering. + // This value is not used by WebRender, since native compositor API is used + // for sw-wr. + bool UsePartialPresent() override { return true; } bool RequestFullRender() override; void Pause() override;