| Index: ui/ozone/common/stub_client_native_pixmap_manager.cc
|
| diff --git a/ui/ozone/common/stub_client_native_pixmap_manager.cc b/ui/ozone/common/stub_client_native_pixmap_manager.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..593f60de8cb3671e8830abfe06511ce69f2314d6
|
| --- /dev/null
|
| +++ b/ui/ozone/common/stub_client_native_pixmap_manager.cc
|
| @@ -0,0 +1,41 @@
|
| +// 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 "ui/ozone/common/stub_client_native_pixmap_manager.h"
|
| +
|
| +#include "base/file_descriptor_posix.h"
|
| +
|
| +namespace ui {
|
| +
|
| +namespace {
|
| +
|
| +class StubClientNativePixmapManager : public ClientNativePixmapManager {
|
| + public:
|
| + StubClientNativePixmapManager() {}
|
| + ~StubClientNativePixmapManager() override {}
|
| +
|
| + // ClientNativePixmapManager:
|
| + std::vector<Configuration> GetSupportedConfigurations() const override {
|
| + return std::vector<Configuration>();
|
| + }
|
| + scoped_ptr<ClientNativePixmap> ImportNativePixmap(
|
| + const base::FileDescriptor& handle,
|
| + const gfx::Size& size,
|
| + NativePixmapFormat format,
|
| + NativePixmapUsage usage) override {
|
| + NOTIMPLEMENTED();
|
| + return nullptr;
|
| + }
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(StubClientNativePixmapManager);
|
| +};
|
| +
|
| +} // namespace
|
| +
|
| +ClientNativePixmapManager* CreateStubClientNativePixmapManager() {
|
| + return new StubClientNativePixmapManager;
|
| +}
|
| +
|
| +} // namespace ui
|
|
|