Bug 1692029 Part 1: Make TextureHost report a native texture policy. r=lsalzman
commit66fe26d3972d1e2b8e9439af9ad41303f023cbb6
authorBrad Werth <bwerth@mozilla.com>
Wed, 10 Mar 2021 16:52:32 +0000 (10 16:52 +0000)
committerBrad Werth <bwerth@mozilla.com>
Wed, 10 Mar 2021 16:52:32 +0000 (10 16:52 +0000)
tree8a99634cb425e26f30de3ffbd7975ee6026d1453
parent52500a64655daf1ca3e7b7c4f3b3482c8633ef57
Bug 1692029 Part 1: Make TextureHost report a native texture policy. r=lsalzman

Whether or not we use a native texture or something else is affected by our
backend and the size of the texture. This patch adds a new function to
centralize that logic in TextureHost, and applies it in callsites that were
checking the backend to determine an image type.

Differential Revision: https://phabricator.services.mozilla.com/D106568
gfx/layers/composite/TextureHost.cpp
gfx/layers/composite/TextureHost.h
gfx/layers/d3d11/TextureD3D11.cpp
gfx/layers/opengl/TextureHostOGL.cpp
gfx/layers/wr/WebRenderBridgeParent.cpp
gfx/webrender_bindings/RenderTextureHostSWGL.cpp