fune/gfx/tests/gtest/TestLayers.h
Botond Ballo 68c71a503c Bug 1802225 - Remove Layers.{h,cpp}. r=tnikkel,geckoview-reviewers,jgilbert,media-playback-reviewers,padenot,m_kato
Where appropriate, `#include "Layers.h"` is replaced with
more specific inclusions.

Differential Revision: https://phabricator.services.mozilla.com/D162934
2022-11-29 01:52:03 +00:00

26 lines
573 B
C++

/* vim:set ts=2 sw=2 sts=2 et: */
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/
*/
#ifndef GFX_TEST_LAYERS_H
#define GFX_TEST_LAYERS_H
#include "nsTArray.h"
#include "mozilla/layers/ISurfaceAllocator.h"
namespace mozilla {
namespace layers {
class TestSurfaceAllocator final : public ISurfaceAllocator {
public:
TestSurfaceAllocator() = default;
virtual ~TestSurfaceAllocator() = default;
bool IsSameProcess() const override { return true; }
};
} // namespace layers
} // namespace mozilla
#endif