Chromium Code Reviews| Index: content/child/child_client_native_pixmap_factory_ozone.h |
| diff --git a/content/child/child_client_native_pixmap_factory_ozone.h b/content/child/child_client_native_pixmap_factory_ozone.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..ee9d38974015b3cadabc1488a491a099bd56c1c5 |
| --- /dev/null |
| +++ b/content/child/child_client_native_pixmap_factory_ozone.h |
| @@ -0,0 +1,39 @@ |
| +// 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_CHILD_CHILD_CLIENT_NATIVE_PIXMAP_FACTORY_OZONE_H_ |
| +#define CONTENT_CHILD_CHILD_CLIENT_NATIVE_PIXMAP_FACTORY_OZONE_H_ |
| + |
| +#include "base/macros.h" |
| +#include "base/memory/scoped_ptr.h" |
| +#include "ui/ozone/public/client_native_pixmap_factory.h" |
| + |
| +namespace content { |
| + |
| +class ChildClientNativePixmapFactory : public ui::ClientNativePixmapFactory { |
|
reveman
2015/08/13 18:05:28
Same here. This is just a large wrapper around cal
dshwang
2015/08/14 12:40:03
Done.
|
| + public: |
| + static ChildClientNativePixmapFactory* GetInstance(); |
| + ~ChildClientNativePixmapFactory() override; |
| + |
| + // ui::ClientNativePixmapFactory: |
| + void Initialize(const base::FileDescriptor& virtual_device) override; |
| + 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 ChildClientNativePixmapFactoryTrait; |
| + ChildClientNativePixmapFactory(); |
| + |
| + scoped_ptr<ui::ClientNativePixmapFactory> pixmap_factory_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(ChildClientNativePixmapFactory); |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_CHILD_CHILD_CLIENT_NATIVE_PIXMAP_FACTORY_OZONE_H_ |