Bug 973227 - Split up TextureHostX11 into TextureSource and TextureHost file, make it backend independent. r=nical
This commit is contained in:
@@ -4,9 +4,6 @@
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "TextureHostBasic.h"
|
||||
#ifdef MOZ_X11
|
||||
#include "TextureHostX11.h"
|
||||
#endif
|
||||
#include "MacIOSurfaceTextureHostBasic.h"
|
||||
|
||||
using namespace mozilla::gl;
|
||||
@@ -28,14 +25,6 @@ CreateTextureHostBasic(const SurfaceDescriptor& aDesc,
|
||||
return result;
|
||||
}
|
||||
#endif
|
||||
#ifdef MOZ_X11
|
||||
if (aDesc.type() == SurfaceDescriptor::TSurfaceDescriptorX11) {
|
||||
const SurfaceDescriptorX11& desc = aDesc.get_SurfaceDescriptorX11();
|
||||
RefPtr<TextureHost> result = new TextureHostX11(aFlags, desc);
|
||||
return result;
|
||||
}
|
||||
#endif
|
||||
|
||||
return CreateBackendIndependentTextureHost(aDesc, aDeallocator, aFlags);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user