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

Unified Diff: ui/ozone/platform/drm/gpu/gbm_buffer_base.cc

Issue 2790553002: Remove opaque frame buffer in destructor of GbmBufferBase. (Closed)
Patch Set: Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/gpu/gbm_buffer_base.cc
diff --git a/ui/ozone/platform/drm/gpu/gbm_buffer_base.cc b/ui/ozone/platform/drm/gpu/gbm_buffer_base.cc
index 3342791fc49b121f8a10afaf6e4925aa4862189a..7dac027efbb9fba89c2609e93674566103d35329 100644
--- a/ui/ozone/platform/drm/gpu/gbm_buffer_base.cc
+++ b/ui/ozone/platform/drm/gpu/gbm_buffer_base.cc
@@ -56,6 +56,8 @@ GbmBufferBase::GbmBufferBase(const scoped_refptr<GbmDevice>& drm,
GbmBufferBase::~GbmBufferBase() {
if (framebuffer_)
drm_->RemoveFramebuffer(framebuffer_);
+ if (opaque_framebuffer_)
+ drm_->RemoveFramebuffer(opaque_framebuffer_);
}
uint32_t GbmBufferBase::GetFramebufferId() const {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698