blob: 542bd2de6a7d5032ce0c91c88311175d97d997f9 [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#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 {}
// ClientNativePixmapFactory:
std::unique_ptr<gfx::ClientNativePixmap> ImportFromHandle(
gfx::NativePixmapHandle handle,
const gfx::Size& size,
gfx::BufferFormat format,
gfx::BufferUsage usage) override {
NOTREACHED();
return nullptr;
}
};
} // namespace
gfx::ClientNativePixmapFactory* CreateStubClientNativePixmapFactory() {
return new StubClientNativePixmapFactory;
}
} // namespace ui