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

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

Issue 1006403002: [Ozone-Drm] Do not try to take ref_ptr from destructor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Wait Created 5 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/drm_device.cc
diff --git a/ui/ozone/platform/drm/gpu/drm_device.cc b/ui/ozone/platform/drm/gpu/drm_device.cc
index 5f87095686efcd183a973db0edf420ecdfa05264..03ca9aa476946456ee29001b3f2bd571cbe8b13d 100644
--- a/ui/ozone/platform/drm/gpu/drm_device.cc
+++ b/ui/ozone/platform/drm/gpu/drm_device.cc
@@ -114,6 +114,7 @@ class DrmDevice::IOWatcher
base::WaitableEvent done(false, false);
io_task_runner_->PostTask(
FROM_HERE, base::Bind(&IOWatcher::SetPausedOnIO, this, &done));
+ done.Wait();
}
void Shutdown() {
@@ -125,7 +126,7 @@ class DrmDevice::IOWatcher
private:
friend class base::RefCountedThreadSafe<IOWatcher>;
- ~IOWatcher() override { SetPaused(true); }
+ ~IOWatcher() override {}
void RegisterOnIO() {
DCHECK(base::MessageLoopForIO::IsCurrent());
« 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