| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PLATFORM_DRI_GBM_SURFACE_FACTORY_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRI_GBM_SURFACE_FACTORY_H_ |
| 6 #define UI_OZONE_PLATFORM_DRI_GBM_SURFACE_FACTORY_H_ | 6 #define UI_OZONE_PLATFORM_DRI_GBM_SURFACE_FACTORY_H_ |
| 7 | 7 |
| 8 #include "ui/ozone/platform/dri/dri_surface_factory.h" | 8 #include "ui/ozone/platform/dri/dri_surface_factory.h" |
| 9 | 9 |
| 10 struct gbm_device; | 10 struct gbm_device; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 const int32_t* GetEGLSurfaceProperties(const int32_t* desired_list) override; | 29 const int32_t* GetEGLSurfaceProperties(const int32_t* desired_list) override; |
| 30 bool LoadEGLGLES2Bindings( | 30 bool LoadEGLGLES2Bindings( |
| 31 AddGLLibraryCallback add_gl_library, | 31 AddGLLibraryCallback add_gl_library, |
| 32 SetGLGetProcAddressProcCallback set_gl_get_proc_address) override; | 32 SetGLGetProcAddressProcCallback set_gl_get_proc_address) override; |
| 33 scoped_ptr<ui::SurfaceOzoneEGL> CreateEGLSurfaceForWidget( | 33 scoped_ptr<ui::SurfaceOzoneEGL> CreateEGLSurfaceForWidget( |
| 34 gfx::AcceleratedWidget w) override; | 34 gfx::AcceleratedWidget w) override; |
| 35 scoped_ptr<SurfaceOzoneEGL> CreateSurfacelessEGLSurfaceForWidget( | 35 scoped_ptr<SurfaceOzoneEGL> CreateSurfacelessEGLSurfaceForWidget( |
| 36 gfx::AcceleratedWidget widget) override; | 36 gfx::AcceleratedWidget widget) override; |
| 37 scoped_refptr<ui::NativePixmap> CreateNativePixmap( | 37 scoped_refptr<ui::NativePixmap> CreateNativePixmap( |
| 38 gfx::Size size, | 38 gfx::Size size, |
| 39 BufferFormat format) override; | 39 BufferFormat format, |
| 40 BufferUsage usage) override; |
| 40 OverlayCandidatesOzone* GetOverlayCandidates( | 41 OverlayCandidatesOzone* GetOverlayCandidates( |
| 41 gfx::AcceleratedWidget w) override; | 42 gfx::AcceleratedWidget w) override; |
| 42 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, | 43 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, |
| 43 int plane_z_order, | 44 int plane_z_order, |
| 44 gfx::OverlayTransform plane_transform, | 45 gfx::OverlayTransform plane_transform, |
| 45 scoped_refptr<NativePixmap> buffer, | 46 scoped_refptr<NativePixmap> buffer, |
| 46 const gfx::Rect& display_bounds, | 47 const gfx::Rect& display_bounds, |
| 47 const gfx::RectF& crop_rect) override; | 48 const gfx::RectF& crop_rect) override; |
| 48 bool CanShowPrimaryPlaneAsOverlay() override; | 49 bool CanShowPrimaryPlaneAsOverlay() override; |
| 50 bool CanCreateNativePixmap(BufferUsage usage) override; |
| 49 | 51 |
| 50 private: | 52 private: |
| 51 DriWindowDelegate* GetOrCreateWindowDelegate(gfx::AcceleratedWidget widget); | 53 DriWindowDelegate* GetOrCreateWindowDelegate(gfx::AcceleratedWidget widget); |
| 52 | 54 |
| 53 gbm_device* device_; // Not owned. | 55 gbm_device* device_; // Not owned. |
| 54 bool allow_surfaceless_; | 56 bool allow_surfaceless_; |
| 55 | 57 |
| 56 DISALLOW_COPY_AND_ASSIGN(GbmSurfaceFactory); | 58 DISALLOW_COPY_AND_ASSIGN(GbmSurfaceFactory); |
| 57 }; | 59 }; |
| 58 | 60 |
| 59 } // namespace ui | 61 } // namespace ui |
| 60 | 62 |
| 61 #endif // UI_OZONE_PLATFORM_DRI_GBM_SURFACE_FACTORY_H_ | 63 #endif // UI_OZONE_PLATFORM_DRI_GBM_SURFACE_FACTORY_H_ |
| OLD | NEW |