| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 void SetHardwareCursor(gfx::AcceleratedWidget window, | 53 void SetHardwareCursor(gfx::AcceleratedWidget window, |
| 54 const SkBitmap& image, | 54 const SkBitmap& image, |
| 55 const gfx::Point& location); | 55 const gfx::Point& location); |
| 56 | 56 |
| 57 void MoveHardwareCursor(gfx::AcceleratedWidget window, | 57 void MoveHardwareCursor(gfx::AcceleratedWidget window, |
| 58 const gfx::Point& location); | 58 const gfx::Point& location); |
| 59 | 59 |
| 60 void UnsetHardwareCursor(gfx::AcceleratedWidget window); | 60 void UnsetHardwareCursor(gfx::AcceleratedWidget window); |
| 61 | 61 |
| 62 private: | 62 protected: |
| 63 // Draw the last set cursor & update the cursor plane. | 63 // Draw the last set cursor & update the cursor plane. |
| 64 void ResetCursor(gfx::AcceleratedWidget w); | 64 void ResetCursor(gfx::AcceleratedWidget w); |
| 65 | 65 |
| 66 virtual DriSurface* CreateSurface(const gfx::Size& size); | 66 virtual DriSurface* CreateSurface(const gfx::Size& size); |
| 67 | 67 |
| 68 DriWrapper* drm_; // Not owned. | 68 DriWrapper* drm_; // Not owned. |
| 69 ScreenManager* screen_manager_; // Not owned. | 69 ScreenManager* screen_manager_; // Not owned. |
| 70 HardwareState state_; | 70 HardwareState state_; |
| 71 | 71 |
| 72 // Active outputs. | 72 // Active outputs. |
| 73 int allocated_widgets_; | 73 int allocated_widgets_; |
| 74 | 74 |
| 75 scoped_ptr<DriSurface> cursor_surface_; | 75 scoped_ptr<DriSurface> cursor_surface_; |
| 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 |