| 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" |
| 11 #include "third_party/skia/include/core/SkBitmap.h" | 11 #include "third_party/skia/include/core/SkBitmap.h" |
| 12 #include "ui/ozone/platform/dri/hardware_cursor_delegate.h" | 12 #include "ui/ozone/platform/dri/hardware_cursor_delegate.h" |
| 13 #include "ui/ozone/public/surface_factory_ozone.h" | 13 #include "ui/ozone/public/surface_factory_ozone.h" |
| 14 | 14 |
| 15 namespace ui { | 15 namespace ui { |
| 16 | 16 |
| 17 class DriBuffer; | 17 class DriBuffer; |
| 18 class DriWrapper; | 18 class DriWrapper; |
| 19 class HardwareDisplayController; | |
| 20 class ScreenManager; | 19 class ScreenManager; |
| 21 class SurfaceOzoneCanvas; | 20 class SurfaceOzoneCanvas; |
| 22 | 21 |
| 23 // SurfaceFactoryOzone implementation on top of DRM/KMS using dumb buffers. | 22 // SurfaceFactoryOzone implementation on top of DRM/KMS using dumb buffers. |
| 24 // This implementation is used in conjunction with the software rendering | 23 // This implementation is used in conjunction with the software rendering |
| 25 // path. | 24 // path. |
| 26 class DriSurfaceFactory : public ui::SurfaceFactoryOzone, | 25 class DriSurfaceFactory : public ui::SurfaceFactoryOzone, |
| 27 public HardwareCursorDelegate { | 26 public HardwareCursorDelegate { |
| 28 public: | 27 public: |
| 29 static const gfx::AcceleratedWidget kDefaultWidgetHandle; | 28 static const gfx::AcceleratedWidget kDefaultWidgetHandle; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 68 |
| 70 SkBitmap cursor_bitmap_; | 69 SkBitmap cursor_bitmap_; |
| 71 gfx::Point cursor_location_; | 70 gfx::Point cursor_location_; |
| 72 | 71 |
| 73 DISALLOW_COPY_AND_ASSIGN(DriSurfaceFactory); | 72 DISALLOW_COPY_AND_ASSIGN(DriSurfaceFactory); |
| 74 }; | 73 }; |
| 75 | 74 |
| 76 } // namespace ui | 75 } // namespace ui |
| 77 | 76 |
| 78 #endif // UI_OZONE_PLATFORM_DRI_DRI_SURFACE_FACTORY_H_ | 77 #endif // UI_OZONE_PLATFORM_DRI_DRI_SURFACE_FACTORY_H_ |
| OLD | NEW |