DCHECK(!allow_gl.Get().Get());
allow_gl.Get().Set(true);
- if (g_service.Get())
+ if (g_service.Get().get())
g_service.Get()->RunTasks();
}
ScopedAllowGL::~ScopedAllowGL() {
allow_gl.Get().Set(false);
- DeferredGpuCommandService* service = g_service.Get();
+ DeferredGpuCommandService* service = g_service.Get().get();
if (service) {
service->RunTasks();
if (service->IdleQueueSize()) {
// static
void DeferredGpuCommandService::SetInstance() {
- if (!g_service.Get()) {
+ if (!g_service.Get().get()) {
g_service.Get() = new DeferredGpuCommandService;
content::SynchronousCompositor::SetGpuService(g_service.Get());
}