blob: f5b33302848aab124593a51b953f583e4e5fae62 [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 "base/macros.h"
#include "ui/gfx/client_native_pixmap_factory.h"
namespace ui {
namespace {
class StubClientNativePixmapFactory : public gfx::ClientNativePixmapFactory {
public:
StubClientNativePixmapFactory() {}
~StubClientNativePixmapFactory() override {}
// ClientNativePixmapFactory:
std::unique_ptr<gfx::ClientNativePixmap> ImportFromHandle(
const gfx::NativePixmapHandle& handle,
const gfx::Size& size,
gfx::BufferUsage usage) override {
NOTREACHED();
return nullptr;
}
private:
DISALLOW_COPY_AND_ASSIGN(StubClientNativePixmapFactory);
};
} // namespace
gfx::ClientNativePixmapFactory* CreateStubClientNativePixmapFactory() {
return new StubClientNativePixmapFactory;
}
} // namespace ui