Bug 1692029 Part 1: Make TextureHost report a native texture policy. r=lsalzman
commitb24888db8db2d131060d59029984f60591e6bf09
authorBrad Werth <bwerth@mozilla.com>
Wed, 10 Mar 2021 18:27:28 +0000 (10 18:27 +0000)
committerBrad Werth <bwerth@mozilla.com>
Wed, 10 Mar 2021 18:27:28 +0000 (10 18:27 +0000)
tree579df3c31da4d3a10ebd4261a323b79a048fe48d
parent82f518906715493dca392985d7ebf8e7cce2d105
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