#include <memory>
#include "base/notreached.h"
#include "ui/gfx/client_native_pixmap_factory.h"
#include "ui/gfx/native_pixmap_handle.h"
namespace ui {
namespace {
class StubClientNativePixmapFactory : public gfx::ClientNativePixmapFactory {
public:
StubClientNativePixmapFactory() {}
StubClientNativePixmapFactory(const StubClientNativePixmapFactory&) = delete;
StubClientNativePixmapFactory& operator=(
const StubClientNativePixmapFactory&) = delete;
~StubClientNativePixmapFactory() override {}
std::unique_ptr<gfx::ClientNativePixmap> ImportFromHandle(
gfx::NativePixmapHandle handle,
const gfx::Size& size,
viz::SharedImageFormat format,
gfx::BufferUsage usage) override {
NOTREACHED();
}
};
}
gfx::ClientNativePixmapFactory* CreateStubClientNativePixmapFactory() {
return new StubClientNativePixmapFactory;
}
}