Bug 1487163: Remove unused function GetEGLTextureFormat(). r=jgilbert
authorDaniel Holbert <dholbert@cs.stanford.edu>
Wed, 29 Aug 2018 19:49:15 +0000
changeset 491686 b6f8a968931e0b5791f557f95d492d6f750f4e32
parent 491685 6eedde033c219dbd4563bc9e2a5f9902353ec2d6
child 491687 1d6495af4aa99c430e42a32551a488a9449201fb
push id1815
push userffxbld-merge
push dateMon, 15 Oct 2018 10:40:45 +0000
treeherdermozilla-release@18d4c09e9378 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgilbert
bugs1487163
milestone63.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 1487163: Remove unused function GetEGLTextureFormat(). r=jgilbert Differential Revision: https://phabricator.services.mozilla.com/D4582
gfx/webrender_bindings/RenderD3D11TextureHostOGL.cpp
--- a/gfx/webrender_bindings/RenderD3D11TextureHostOGL.cpp
+++ b/gfx/webrender_bindings/RenderD3D11TextureHostOGL.cpp
@@ -12,36 +12,16 @@
 #include "GLContextEGL.h"
 #include "mozilla/DebugOnly.h"
 #include "mozilla/gfx/Logging.h"
 #include "ScopedGLHelpers.h"
 
 namespace mozilla {
 namespace wr {
 
-static EGLint
-GetEGLTextureFormat(gfx::SurfaceFormat aFormat)
-{
-  switch (aFormat) {
-    case gfx::SurfaceFormat::B8G8R8A8:
-    case gfx::SurfaceFormat::B8G8R8X8:
-    case gfx::SurfaceFormat::R8G8B8A8:
-    case gfx::SurfaceFormat::R8G8B8X8:
-    case gfx::SurfaceFormat::A8R8G8B8:
-    case gfx::SurfaceFormat::X8R8G8B8:
-      return LOCAL_EGL_TEXTURE_RGBA;
-    case gfx::SurfaceFormat::R8G8B8:
-    case gfx::SurfaceFormat::B8G8R8:
-      return LOCAL_EGL_TEXTURE_RGB;
-    default:
-      gfxCriticalError() << "GetEGLTextureFormat(): unexpected texture format";
-      return LOCAL_EGL_TEXTURE_RGBA;
-  }
-}
-
 RenderDXGITextureHostOGL::RenderDXGITextureHostOGL(WindowsHandle aHandle,
                                                    gfx::SurfaceFormat aFormat,
                                                    gfx::IntSize aSize)
   : mHandle(aHandle)
   , mSurface(0)
   , mStream(0)
   , mTextureHandle{0}
   , mFormat(aFormat)