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

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

Issue 1132803004: ozone: drm: Fix graphics buffer handle leak in DrmConsoleBuffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2357
Patch Set: Created 5 years, 7 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_DEVICE_H_ 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_
6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_ 6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 virtual bool CreateDumbBuffer(const SkImageInfo& info, 147 virtual bool CreateDumbBuffer(const SkImageInfo& info,
148 uint32_t* handle, 148 uint32_t* handle,
149 uint32_t* stride, 149 uint32_t* stride,
150 void** pixels); 150 void** pixels);
151 151
152 virtual void DestroyDumbBuffer(const SkImageInfo& info, 152 virtual void DestroyDumbBuffer(const SkImageInfo& info,
153 uint32_t handle, 153 uint32_t handle,
154 uint32_t stride, 154 uint32_t stride,
155 void* pixels); 155 void* pixels);
156 156
157 virtual bool CloseBufferHandle(uint32_t handle);
158
157 virtual bool CommitProperties(drmModePropertySet* properties, 159 virtual bool CommitProperties(drmModePropertySet* properties,
158 uint32_t flags, 160 uint32_t flags,
159 const PageFlipCallback& callback); 161 const PageFlipCallback& callback);
160 162
161 // Drm master related 163 // Drm master related
162 virtual bool SetMaster(); 164 virtual bool SetMaster();
163 virtual bool DropMaster(); 165 virtual bool DropMaster();
164 166
165 int get_fd() const { return file_.GetPlatformFile(); } 167 int get_fd() const { return file_.GetPlatformFile(); }
166 168
(...skipping 22 matching lines...) Expand all
189 191
190 // Watcher for |fd_| listening for page flip events. 192 // Watcher for |fd_| listening for page flip events.
191 scoped_refptr<IOWatcher> watcher_; 193 scoped_refptr<IOWatcher> watcher_;
192 194
193 DISALLOW_COPY_AND_ASSIGN(DrmDevice); 195 DISALLOW_COPY_AND_ASSIGN(DrmDevice);
194 }; 196 };
195 197
196 } // namespace ui 198 } // namespace ui
197 199
198 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_ 200 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_console_buffer.cc ('k') | ui/ozone/platform/drm/gpu/drm_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698