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

Side by Side Diff: gpu/gles2_conform_support/egl/context.cc

Issue 2814843002: gpu: GPU service scheduler. (Closed)
Patch Set: rebase Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "gpu/gles2_conform_support/egl/context.h" 5 #include "gpu/gles2_conform_support/egl/context.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "gpu/command_buffer/client/gles2_implementation.h" 10 #include "gpu/command_buffer/client/gles2_implementation.h"
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 } 178 }
179 179
180 void Context::SetLock(base::Lock*) { 180 void Context::SetLock(base::Lock*) {
181 NOTIMPLEMENTED(); 181 NOTIMPLEMENTED();
182 } 182 }
183 183
184 void Context::EnsureWorkVisible() { 184 void Context::EnsureWorkVisible() {
185 // This is only relevant for out-of-process command buffers. 185 // This is only relevant for out-of-process command buffers.
186 } 186 }
187 187
188 void Context::EnsureWorkVisibleAsync() {}
189
188 gpu::CommandBufferNamespace Context::GetNamespaceID() const { 190 gpu::CommandBufferNamespace Context::GetNamespaceID() const {
189 return gpu::CommandBufferNamespace::IN_PROCESS; 191 return gpu::CommandBufferNamespace::IN_PROCESS;
190 } 192 }
191 193
192 gpu::CommandBufferId Context::GetCommandBufferID() const { 194 gpu::CommandBufferId Context::GetCommandBufferID() const {
193 return gpu::CommandBufferId(); 195 return gpu::CommandBufferId();
194 } 196 }
195 197
196 int32_t Context::GetExtraCommandBufferData() const { 198 int32_t Context::GetExtraCommandBufferData() const {
197 return 0; 199 return 0;
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 return false; 394 return false;
393 if (!gl_context_->MakeCurrent(gl_surface)) { 395 if (!gl_context_->MakeCurrent(gl_surface)) {
394 MarkServiceContextLost(); 396 MarkServiceContextLost();
395 return false; 397 return false;
396 } 398 }
397 client_gl_context_->Flush(); 399 client_gl_context_->Flush();
398 return true; 400 return true;
399 } 401 }
400 402
401 } // namespace egl 403 } // namespace egl
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698