summaryrefslogtreecommitdiff
path: root/gfx/tests/gtest/TestLayers.h
diff options
context:
space:
mode:
authorAndrew Osmond <aosmond@mozilla.com>2018-02-22 12:11:00 -0500
committerwolfbeast <mcwerewolf@gmail.com>2018-03-14 11:06:35 +0100
commitc0ea2166b946daaad3b2b85b68c5570f9f7822d7 (patch)
tree24800a260ae6e9c539f2ce0b5c24d9ba4f117685 /gfx/tests/gtest/TestLayers.h
parent686954ea845a7b05a8bdb8d2ed9a002a88e698e6 (diff)
downloaduxp-c0ea2166b946daaad3b2b85b68c5570f9f7822d7.tar.gz
Bug 1388020. r=nical, a=RyanVM
Diffstat (limited to 'gfx/tests/gtest/TestLayers.h')
-rw-r--r--gfx/tests/gtest/TestLayers.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/gfx/tests/gtest/TestLayers.h b/gfx/tests/gtest/TestLayers.h
index 18e351f771..fc6b750f1c 100644
--- a/gfx/tests/gtest/TestLayers.h
+++ b/gfx/tests/gtest/TestLayers.h
@@ -8,6 +8,22 @@
#include "Layers.h"
#include "nsTArray.h"
+#include "mozilla/layers/ISurfaceAllocator.h"
+
+namespace mozilla {
+namespace layers {
+
+class TestSurfaceAllocator final : public ISurfaceAllocator
+{
+public:
+ TestSurfaceAllocator() {}
+ ~TestSurfaceAllocator() override {}
+
+ bool IsSameProcess() const override { return true; }
+};
+
+} // layers
+} // mozilla
/* Create layer tree from a simple layer tree description syntax.
* Each index is either the first letter of the layer type or