Bug 1544703 - Enable WebRenderTextureHostWrapper usage for SurfaceTextureHost r=nical

Usage of WebRenderTextureHostWrapper for SurfaceTextureHost could reduce cpu/gpu task on android.

Differential Revision: https://phabricator.services.mozilla.com/D27653

--HG--
extra : moz-landing-system : lando
This commit is contained in:
sotaro 2019-04-23 12:30:20 +00:00
parent 8a82166949
commit b57e87fe30

View File

@ -440,6 +440,8 @@ class SurfaceTextureHost : public TextureHost {
const wr::LayoutRect& aClip, wr::ImageRendering aFilter,
const Range<wr::ImageKey>& aImageKeys) override;
bool SupportsWrNativeTexture() override { return true; }
protected:
bool EnsureAttached();