OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 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 UI_OZONE_PUBLIC_SURFACE_CLIENT_FACTORY_OZONE_H_ |
| 6 #define UI_OZONE_PUBLIC_SURFACE_CLIENT_FACTORY_OZONE_H_ |
| 7 |
| 8 #include "ui/ozone/public/surface_factory_ozone.h" |
| 9 |
| 10 namespace ui { |
| 11 |
| 12 // The Ozone interface allows external implementations to hook into Chromium to |
| 13 // provide the handle of a system specific surface implementation for Browser |
| 14 // and Render process. |
| 15 class OZONE_BASE_EXPORT SurfaceClientFactoryOzone { |
| 16 public: |
| 17 SurfaceClientFactoryOzone(); |
| 18 virtual ~SurfaceClientFactoryOzone(); |
| 19 |
| 20 struct Configuration { |
| 21 SurfaceFactoryOzone::BufferFormat format; |
| 22 SurfaceFactoryOzone::BufferUsage usage; |
| 23 }; |
| 24 |
| 25 // Gets supported format/usage configurations. |
| 26 virtual std::vector<Configuration> GetSupportedNativePixmapConfigurations() |
| 27 const; |
| 28 |
| 29 private: |
| 30 DISALLOW_COPY_AND_ASSIGN(SurfaceClientFactoryOzone); |
| 31 }; |
| 32 |
| 33 } // namespace ui |
| 34 |
| 35 #endif // UI_OZONE_PUBLIC_SURFACE_CLIENT_FACTORY_OZONE_H_ |
OLD | NEW |