summaryrefslogtreecommitdiff
path: root/gfx/layers/client/TextureClient.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/layers/client/TextureClient.cpp')
-rw-r--r--gfx/layers/client/TextureClient.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/gfx/layers/client/TextureClient.cpp b/gfx/layers/client/TextureClient.cpp
index e8139e9a92..33082fea47 100644
--- a/gfx/layers/client/TextureClient.cpp
+++ b/gfx/layers/client/TextureClient.cpp
@@ -46,6 +46,10 @@
#endif
#endif
+#ifdef XP_MACOSX
+#include "mozilla/layers/MacIOSurfaceTextureClientOGL.h"
+#endif
+
#if 0
#define RECYCLE_LOG(...) printf_stderr(__VA_ARGS__)
#else
@@ -1060,6 +1064,12 @@ TextureClient::CreateForDrawing(TextureForwarder* aAllocator,
#endif
#endif
+#ifdef XP_MACOSX
+ if (!data && gfxPrefs::UseIOSurfaceTextures()) {
+ data = MacIOSurfaceTextureData::Create(aSize, aFormat, moz2DBackend);
+ }
+#endif
+
if (data) {
return MakeAndAddRef<TextureClient>(data, aTextureFlags, aAllocator);
}