| 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_DRM_GPU_DRM_BUFFER_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_BUFFER_H_ |
| 6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_BUFFER_H_ | 6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_BUFFER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 size_t mmap_size_ = 0; | 57 size_t mmap_size_ = 0; |
| 58 | 58 |
| 59 // Buffer ID used by the DRM modesettings API. This is set when the buffer is | 59 // Buffer ID used by the DRM modesettings API. This is set when the buffer is |
| 60 // registered with the CRTC. | 60 // registered with the CRTC. |
| 61 uint32_t framebuffer_ = 0; | 61 uint32_t framebuffer_ = 0; |
| 62 | 62 |
| 63 // Pixel format of |framebuffer_| | 63 // Pixel format of |framebuffer_| |
| 64 uint32_t fb_pixel_format_ = 0; | 64 uint32_t fb_pixel_format_ = 0; |
| 65 | 65 |
| 66 // Wrapper around the native pixel memory. | 66 // Wrapper around the native pixel memory. |
| 67 skia::RefPtr<SkSurface> surface_; | 67 sk_sp<SkSurface> surface_; |
| 68 | 68 |
| 69 DISALLOW_COPY_AND_ASSIGN(DrmBuffer); | 69 DISALLOW_COPY_AND_ASSIGN(DrmBuffer); |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 } // namespace ui | 72 } // namespace ui |
| 73 | 73 |
| 74 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_BUFFER_H_ | 74 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_BUFFER_H_ |
| OLD | NEW |