| Index: content/test/test_client_native_pixmap_factory_ozone.h
|
| diff --git a/content/test/test_client_native_pixmap_factory_ozone.h b/content/test/test_client_native_pixmap_factory_ozone.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6aaafe0b85629367b3fc5aa60e3c3a94efb63ff2
|
| --- /dev/null
|
| +++ b/content/test/test_client_native_pixmap_factory_ozone.h
|
| @@ -0,0 +1,38 @@
|
| +// 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.
|
| +
|
| +#ifndef CONTENT_TEST_TEST_CLIENT_NATIVE_PIXMAP_FACTORY_OZONE_H_
|
| +#define CONTENT_TEST_TEST_CLIENT_NATIVE_PIXMAP_FACTORY_OZONE_H_
|
| +
|
| +#include "ui/ozone/public/client_native_pixmap_factory.h"
|
| +
|
| +namespace content {
|
| +
|
| +class TestClientNativePixmapFactory : public ui::ClientNativePixmapFactory {
|
| + public:
|
| + static TestClientNativePixmapFactory* GetInstance();
|
| + ~TestClientNativePixmapFactory() override;
|
| +
|
| + // ui::ClientNativePixmapFactory:
|
| + std::vector<Configuration> GetSupportedConfigurations() const override;
|
| + scoped_ptr<ui::ClientNativePixmap> ImportNativePixmap(
|
| + const base::FileDescriptor& handle,
|
| + const gfx::Size& size,
|
| + gfx::BufferFormat format,
|
| + gfx::BufferUsage usage) override;
|
| +
|
| + private:
|
| + friend struct TestClientNativePixmapFactoryTrait;
|
| + TestClientNativePixmapFactory();
|
| +
|
| + void Initialize(const base::FileDescriptor& virtual_device) override;
|
| +
|
| + scoped_ptr<ui::ClientNativePixmapFactory> pixmap_factory_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(TestClientNativePixmapFactory);
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_TEST_TEST_CLIENT_NATIVE_PIXMAP_FACTORY_OZONE_H_
|
|
|