OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_OZONE_PLATFORM_DRI_GBM_SURFACE_FACTORY_H_ |
| 6 #define UI_OZONE_PLATFORM_DRI_GBM_SURFACE_FACTORY_H_ |
| 7 |
| 8 #include "ui/ozone/platform/dri/dri_surface_factory.h" |
| 9 |
| 10 struct gbm_device; |
| 11 |
| 12 namespace ui { |
| 13 |
| 14 class GbmSurfaceFactory : public DriSurfaceFactory { |
| 15 public: |
| 16 GbmSurfaceFactory(DriWrapper* dri, |
| 17 gbm_device* device, |
| 18 ScreenManager* screen_manager); |
| 19 virtual ~GbmSurfaceFactory(); |
| 20 |
| 21 // DriSurfaceFactory: |
| 22 virtual intptr_t GetNativeDisplay() OVERRIDE; |
| 23 virtual const int32_t* GetEGLSurfaceProperties( |
| 24 const int32_t* desired_list) OVERRIDE; |
| 25 virtual bool LoadEGLGLES2Bindings( |
| 26 AddGLLibraryCallback add_gl_library, |
| 27 SetGLGetProcAddressProcCallback set_gl_get_proc_address) OVERRIDE; |
| 28 virtual scoped_ptr<gfx::SurfaceOzoneEGL> CreateEGLSurfaceForWidget( |
| 29 gfx::AcceleratedWidget w) OVERRIDE; |
| 30 |
| 31 private: |
| 32 gbm_device* device_; // Not owned. |
| 33 |
| 34 DISALLOW_COPY_AND_ASSIGN(GbmSurfaceFactory); |
| 35 }; |
| 36 |
| 37 } // namespace ui |
| 38 |
| 39 #endif // UI_OZONE_PLATFORM_DRI_GBM_SURFACE_FACTORY_H_ |
OLD | NEW |