| 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_DRI_SURFACE_FACTORY_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRI_DRI_SURFACE_FACTORY_H_ |
| 6 #define UI_OZONE_PLATFORM_DRI_DRI_SURFACE_FACTORY_H_ | 6 #define UI_OZONE_PLATFORM_DRI_DRI_SURFACE_FACTORY_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 public: | 32 public: |
| 33 static const gfx::AcceleratedWidget kDefaultWidgetHandle; | 33 static const gfx::AcceleratedWidget kDefaultWidgetHandle; |
| 34 | 34 |
| 35 DriSurfaceFactory(DriWrapper* drm, ScreenManager* screen_manager); | 35 DriSurfaceFactory(DriWrapper* drm, ScreenManager* screen_manager); |
| 36 virtual ~DriSurfaceFactory(); | 36 virtual ~DriSurfaceFactory(); |
| 37 | 37 |
| 38 // SurfaceFactoryOzone overrides: | 38 // SurfaceFactoryOzone overrides: |
| 39 virtual HardwareState InitializeHardware() OVERRIDE; | 39 virtual HardwareState InitializeHardware() OVERRIDE; |
| 40 virtual void ShutdownHardware() OVERRIDE; | 40 virtual void ShutdownHardware() OVERRIDE; |
| 41 | 41 |
| 42 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; | 42 virtual intptr_t CreatePlatformWindow(ui::PlatformWindowDelegate*) OVERRIDE; |
| 43 | 43 |
| 44 virtual scoped_ptr<gfx::SurfaceOzoneCanvas> CreateCanvasForWidget( | 44 virtual scoped_ptr<gfx::SurfaceOzoneCanvas> CreateCanvasForWidget( |
| 45 gfx::AcceleratedWidget w) OVERRIDE; | 45 gfx::AcceleratedWidget w) OVERRIDE; |
| 46 | 46 |
| 47 virtual bool LoadEGLGLES2Bindings( | 47 virtual bool LoadEGLGLES2Bindings( |
| 48 AddGLLibraryCallback add_gl_library, | 48 AddGLLibraryCallback add_gl_library, |
| 49 SetGLGetProcAddressProcCallback set_gl_get_proc_address) OVERRIDE; | 49 SetGLGetProcAddressProcCallback set_gl_get_proc_address) OVERRIDE; |
| 50 | 50 |
| 51 gfx::Size GetWidgetSize(gfx::AcceleratedWidget w); | 51 gfx::Size GetWidgetSize(gfx::AcceleratedWidget w); |
| 52 | 52 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 76 | 76 |
| 77 SkBitmap cursor_bitmap_; | 77 SkBitmap cursor_bitmap_; |
| 78 gfx::Point cursor_location_; | 78 gfx::Point cursor_location_; |
| 79 | 79 |
| 80 DISALLOW_COPY_AND_ASSIGN(DriSurfaceFactory); | 80 DISALLOW_COPY_AND_ASSIGN(DriSurfaceFactory); |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 } // namespace ui | 83 } // namespace ui |
| 84 | 84 |
| 85 #endif // UI_OZONE_PLATFORM_DRI_DRI_SURFACE_FACTORY_H_ | 85 #endif // UI_OZONE_PLATFORM_DRI_DRI_SURFACE_FACTORY_H_ |
| OLD | NEW |