Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(221)

Side by Side Diff: ui/ozone/platform/drm/gpu/drm_buffer.h

Issue 1855273002: Update new Surface callsites (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698