| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 AddGLLibraryCallback add_gl_library, | 47 AddGLLibraryCallback add_gl_library, |
| 48 SetGLGetProcAddressProcCallback set_gl_get_proc_address) OVERRIDE; | 48 SetGLGetProcAddressProcCallback set_gl_get_proc_address) OVERRIDE; |
| 49 | 49 |
| 50 virtual bool SchedulePageFlip(gfx::AcceleratedWidget w); | 50 virtual bool SchedulePageFlip(gfx::AcceleratedWidget w); |
| 51 | 51 |
| 52 virtual SkCanvas* GetCanvasForWidget(gfx::AcceleratedWidget w); | 52 virtual SkCanvas* GetCanvasForWidget(gfx::AcceleratedWidget w); |
| 53 | 53 |
| 54 virtual scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider( | 54 virtual scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider( |
| 55 gfx::AcceleratedWidget w); | 55 gfx::AcceleratedWidget w); |
| 56 | 56 |
| 57 gfx::Size GetWidgetSize(gfx::AcceleratedWidget w); |
| 58 |
| 57 void SetHardwareCursor(gfx::AcceleratedWidget window, | 59 void SetHardwareCursor(gfx::AcceleratedWidget window, |
| 58 const SkBitmap& image, | 60 const SkBitmap& image, |
| 59 const gfx::Point& location); | 61 const gfx::Point& location); |
| 60 | 62 |
| 61 void MoveHardwareCursor(gfx::AcceleratedWidget window, | 63 void MoveHardwareCursor(gfx::AcceleratedWidget window, |
| 62 const gfx::Point& location); | 64 const gfx::Point& location); |
| 63 | 65 |
| 64 void UnsetHardwareCursor(gfx::AcceleratedWidget window); | 66 void UnsetHardwareCursor(gfx::AcceleratedWidget window); |
| 65 | 67 |
| 66 // Called to initialize a new display. The display is then added to | 68 // Called to initialize a new display. The display is then added to |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 | 118 |
| 117 SkBitmap cursor_bitmap_; | 119 SkBitmap cursor_bitmap_; |
| 118 gfx::Point cursor_location_; | 120 gfx::Point cursor_location_; |
| 119 | 121 |
| 120 DISALLOW_COPY_AND_ASSIGN(DriSurfaceFactory); | 122 DISALLOW_COPY_AND_ASSIGN(DriSurfaceFactory); |
| 121 }; | 123 }; |
| 122 | 124 |
| 123 } // namespace ui | 125 } // namespace ui |
| 124 | 126 |
| 125 #endif // UI_OZONE_PLATFORM_DRI_DRI_SURFACE_FACTORY_H_ | 127 #endif // UI_OZONE_PLATFORM_DRI_DRI_SURFACE_FACTORY_H_ |
| OLD | NEW |