| Index: ui/gl/gl_context_cgl.cc
|
| diff --git a/ui/gl/gl_context_cgl.cc b/ui/gl/gl_context_cgl.cc
|
| index b799a174716cc2dba13ff71ddbe5f0f0d8633ec8..8c779ea05e30eb746a38b52e096f6fec443d0755 100644
|
| --- a/ui/gl/gl_context_cgl.cc
|
| +++ b/ui/gl/gl_context_cgl.cc
|
| @@ -10,7 +10,10 @@
|
| #include <memory>
|
| #include <vector>
|
|
|
| +#include "base/location.h"
|
| #include "base/logging.h"
|
| +#include "base/single_thread_task_runner.h"
|
| +#include "base/threading/thread_task_runner_handle.h"
|
| #include "base/trace_event/trace_event.h"
|
| #include "ui/gl/gl_bindings.h"
|
| #include "ui/gl/gl_implementation.h"
|
| @@ -146,7 +149,7 @@ void GLContextCGL::Destroy() {
|
| if (base::MessageLoop::current() != nullptr) {
|
| // Delay releasing the pixel format for 10 seconds to reduce the number of
|
| // unnecessary GPU switches.
|
| - base::MessageLoop::current()->PostDelayedTask(
|
| + base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
|
| FROM_HERE, base::Bind(&CGLReleasePixelFormat, discrete_pixelformat_),
|
| base::TimeDelta::FromSeconds(10));
|
| } else {
|
|
|