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

Unified Diff: ui/gl/gl_surface_glx.cc

Issue 2211473003: Remove calls to deprecated MessageLoop methods on Windows and Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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 | « ui/events/platform/platform_event_source_unittest.cc ('k') | ui/keyboard/keyboard_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface_glx.cc
diff --git a/ui/gl/gl_surface_glx.cc b/ui/gl/gl_surface_glx.cc
index 47d32319543a9c50e8129915fb4e92cad268623e..d462aa94ac10bd8505a9e1d5c8ae7de1bec69339 100644
--- a/ui/gl/gl_surface_glx.cc
+++ b/ui/gl/gl_surface_glx.cc
@@ -281,10 +281,9 @@ class SGIVideoSyncVSyncProvider
shim_(new SGIVideoSyncProviderThreadShim(config, glx_window)),
cancel_vsync_flag_(shim_->cancel_vsync_flag()),
vsync_lock_(shim_->vsync_lock()) {
- vsync_thread_->message_loop()->PostTask(
- FROM_HERE,
- base::Bind(&SGIVideoSyncProviderThreadShim::Initialize,
- base::Unretained(shim_.get())));
+ vsync_thread_->task_runner()->PostTask(
+ FROM_HERE, base::Bind(&SGIVideoSyncProviderThreadShim::Initialize,
+ base::Unretained(shim_.get())));
}
~SGIVideoSyncVSyncProvider() override {
@@ -294,9 +293,7 @@ class SGIVideoSyncVSyncProvider
}
// Hand-off |shim_| to be deleted on the |vsync_thread_|.
- vsync_thread_->message_loop()->DeleteSoon(
- FROM_HERE,
- shim_.release());
+ vsync_thread_->task_runner()->DeleteSoon(FROM_HERE, shim_.release());
}
void GetVSyncParameters(
@@ -313,12 +310,12 @@ class SGIVideoSyncVSyncProvider
if (!pending_callback_) {
pending_callback_.reset(
new gfx::VSyncProvider::UpdateVSyncCallback(callback));
- vsync_thread_->message_loop()->PostTask(
+ vsync_thread_->task_runner()->PostTask(
FROM_HERE,
- base::Bind(&SGIVideoSyncProviderThreadShim::GetVSyncParameters,
- base::Unretained(shim_.get()),
- base::Bind(
- &SGIVideoSyncVSyncProvider::PendingCallbackRunner,
+ base::Bind(
+ &SGIVideoSyncProviderThreadShim::GetVSyncParameters,
+ base::Unretained(shim_.get()),
+ base::Bind(&SGIVideoSyncVSyncProvider::PendingCallbackRunner,
AsWeakPtr())));
}
}
« no previous file with comments | « ui/events/platform/platform_event_source_unittest.cc ('k') | ui/keyboard/keyboard_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698