| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_OZONE_PUBLIC_CLIENT_NATIVE_PIXMAP_FACTORY_H_ | 5 #ifndef UI_OZONE_PUBLIC_CLIENT_NATIVE_PIXMAP_FACTORY_H_ |
| 6 #define UI_OZONE_PUBLIC_CLIENT_NATIVE_PIXMAP_FACTORY_H_ | 6 #define UI_OZONE_PUBLIC_CLIENT_NATIVE_PIXMAP_FACTORY_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 // Gets supported format/usage configurations. | 44 // Gets supported format/usage configurations. |
| 45 virtual std::vector<Configuration> GetSupportedConfigurations() const = 0; | 45 virtual std::vector<Configuration> GetSupportedConfigurations() const = 0; |
| 46 | 46 |
| 47 // TODO(dshwang): implement it. crbug.com/475633 | 47 // TODO(dshwang): implement it. crbug.com/475633 |
| 48 // Import the native pixmap from |handle| to be used in non-GPU processes. | 48 // Import the native pixmap from |handle| to be used in non-GPU processes. |
| 49 // This function takes ownership of any file descriptors in |handle|. | 49 // This function takes ownership of any file descriptors in |handle|. |
| 50 virtual scoped_ptr<ClientNativePixmap> ImportFromHandle( | 50 virtual scoped_ptr<ClientNativePixmap> ImportFromHandle( |
| 51 const gfx::NativePixmapHandle& handle, | 51 const gfx::NativePixmapHandle& handle, |
| 52 const gfx::Size& size, | 52 const gfx::Size& size, |
| 53 gfx::BufferFormat format, | |
| 54 gfx::BufferUsage usage) = 0; | 53 gfx::BufferUsage usage) = 0; |
| 55 | 54 |
| 56 protected: | 55 protected: |
| 57 ClientNativePixmapFactory(); | 56 ClientNativePixmapFactory(); |
| 58 | 57 |
| 59 private: | 58 private: |
| 60 DISALLOW_COPY_AND_ASSIGN(ClientNativePixmapFactory); | 59 DISALLOW_COPY_AND_ASSIGN(ClientNativePixmapFactory); |
| 61 }; | 60 }; |
| 62 | 61 |
| 63 } // namespace ui | 62 } // namespace ui |
| 64 | 63 |
| 65 #endif // UI_OZONE_PUBLIC_CLIENT_NATIVE_PIXMAP_FACTORY_H_ | 64 #endif // UI_OZONE_PUBLIC_CLIENT_NATIVE_PIXMAP_FACTORY_H_ |
| OLD | NEW |