| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_SURFACE_FACTORY_OZONE_H_ | 5 #ifndef UI_OZONE_PUBLIC_SURFACE_FACTORY_OZONE_H_ |
| 6 #define UI_OZONE_PUBLIC_SURFACE_FACTORY_OZONE_H_ | 6 #define UI_OZONE_PUBLIC_SURFACE_FACTORY_OZONE_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/native_library.h" | 10 #include "base/native_library.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // formats once we know what sorts of content, video, etc. we can support. | 63 // formats once we know what sorts of content, video, etc. we can support. |
| 64 enum BufferFormat { | 64 enum BufferFormat { |
| 65 UNKNOWN, | 65 UNKNOWN, |
| 66 BGRA_8888, | 66 BGRA_8888, |
| 67 RGBX_8888, | 67 RGBX_8888, |
| 68 RGB_888, | 68 RGB_888, |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 enum BufferUsage { | 71 enum BufferUsage { |
| 72 MAP, | 72 MAP, |
| 73 PERSISTENT_MAP, | |
| 74 SCANOUT, | 73 SCANOUT, |
| 75 }; | 74 }; |
| 76 | 75 |
| 77 typedef void* (*GLGetProcAddressProc)(const char* name); | 76 typedef void* (*GLGetProcAddressProc)(const char* name); |
| 78 typedef base::Callback<void(base::NativeLibrary)> AddGLLibraryCallback; | 77 typedef base::Callback<void(base::NativeLibrary)> AddGLLibraryCallback; |
| 79 typedef base::Callback<void(GLGetProcAddressProc)> | 78 typedef base::Callback<void(GLGetProcAddressProc)> |
| 80 SetGLGetProcAddressProcCallback; | 79 SetGLGetProcAddressProcCallback; |
| 81 | 80 |
| 82 SurfaceFactoryOzone(); | 81 SurfaceFactoryOzone(); |
| 83 virtual ~SurfaceFactoryOzone(); | 82 virtual ~SurfaceFactoryOzone(); |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 // such as MAP for zero copy or SCANOUT for display controller. | 163 // such as MAP for zero copy or SCANOUT for display controller. |
| 165 virtual bool CanCreateNativePixmap(BufferUsage usage); | 164 virtual bool CanCreateNativePixmap(BufferUsage usage); |
| 166 | 165 |
| 167 private: | 166 private: |
| 168 static SurfaceFactoryOzone* impl_; // not owned | 167 static SurfaceFactoryOzone* impl_; // not owned |
| 169 }; | 168 }; |
| 170 | 169 |
| 171 } // namespace ui | 170 } // namespace ui |
| 172 | 171 |
| 173 #endif // UI_OZONE_PUBLIC_SURFACE_FACTORY_OZONE_H_ | 172 #endif // UI_OZONE_PUBLIC_SURFACE_FACTORY_OZONE_H_ |
| OLD | NEW |