OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_TEST_TEST_CLIENT_NATIVE_PIXMAP_FACTORY_OZONE_H_ |
| 6 #define CONTENT_TEST_TEST_CLIENT_NATIVE_PIXMAP_FACTORY_OZONE_H_ |
| 7 |
| 8 #include "ui/ozone/public/client_native_pixmap_factory.h" |
| 9 |
| 10 namespace content { |
| 11 |
| 12 class TestClientNativePixmapFactory : public ui::ClientNativePixmapFactory { |
| 13 public: |
| 14 static TestClientNativePixmapFactory* GetInstance(); |
| 15 ~TestClientNativePixmapFactory() override; |
| 16 |
| 17 // ui::ClientNativePixmapFactory: |
| 18 std::vector<Configuration> GetSupportedConfigurations() const override; |
| 19 scoped_ptr<ui::ClientNativePixmap> ImportNativePixmap( |
| 20 const base::FileDescriptor& handle, |
| 21 const gfx::Size& size, |
| 22 gfx::BufferFormat format, |
| 23 gfx::BufferUsage usage) override; |
| 24 |
| 25 private: |
| 26 friend struct TestClientNativePixmapFactoryTrait; |
| 27 TestClientNativePixmapFactory(); |
| 28 |
| 29 void Initialize(const base::FileDescriptor& virtual_device) override; |
| 30 |
| 31 scoped_ptr<ui::ClientNativePixmapFactory> pixmap_factory_; |
| 32 |
| 33 DISALLOW_COPY_AND_ASSIGN(TestClientNativePixmapFactory); |
| 34 }; |
| 35 |
| 36 } // namespace content |
| 37 |
| 38 #endif // CONTENT_TEST_TEST_CLIENT_NATIVE_PIXMAP_FACTORY_OZONE_H_ |
OLD | NEW |