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

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

Issue 2727573003: gpu: Add sync token dependencies to flush metadata. (Closed)
Patch Set: jbauman's review Created 3 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 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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 bool Context::IsFenceSyncReleased(uint64_t release) { 216 bool Context::IsFenceSyncReleased(uint64_t release) {
217 NOTIMPLEMENTED(); 217 NOTIMPLEMENTED();
218 return false; 218 return false;
219 } 219 }
220 220
221 void Context::SignalSyncToken(const gpu::SyncToken& sync_token, 221 void Context::SignalSyncToken(const gpu::SyncToken& sync_token,
222 const base::Closure& callback) { 222 const base::Closure& callback) {
223 NOTIMPLEMENTED(); 223 NOTIMPLEMENTED();
224 } 224 }
225 225
226 bool Context::CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) { 226 void Context::WaitSyncToken(const gpu::SyncToken& sync_token) {}
dcheng 2017/03/14 06:53:03 Is this a NOTIMPLEMENTED kind of thing?
sunnyps 2017/03/15 00:03:08 No, GLES2Implementation might call this. I don't k
piman 2017/03/15 00:30:14 It could be named something like WaitSyncTokenHint
sunnyps 2017/03/15 00:56:11 Done.
227
228 bool Context::CanWaitUnverifiedSyncToken(const gpu::SyncToken& sync_token) {
227 return false; 229 return false;
228 } 230 }
229 231
230 void Context::ApplyCurrentContext(gl::GLSurface* current_surface) { 232 void Context::ApplyCurrentContext(gl::GLSurface* current_surface) {
231 DCHECK(HasService()); 233 DCHECK(HasService());
232 // The current_surface will be the same as 234 // The current_surface will be the same as
233 // the surface of the decoder. We can not DCHECK as there is 235 // the surface of the decoder. We can not DCHECK as there is
234 // no accessor. 236 // no accessor.
235 if (!WasServiceContextLost()) { 237 if (!WasServiceContextLost()) {
236 if (!gl_context_->MakeCurrent(current_surface)) 238 if (!gl_context_->MakeCurrent(current_surface))
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 return false; 389 return false;
388 if (!gl_context_->MakeCurrent(gl_surface)) { 390 if (!gl_context_->MakeCurrent(gl_surface)) {
389 MarkServiceContextLost(); 391 MarkServiceContextLost();
390 return false; 392 return false;
391 } 393 }
392 client_gl_context_->Flush(); 394 client_gl_context_->Flush();
393 return true; 395 return true;
394 } 396 }
395 397
396 } // namespace egl 398 } // namespace egl
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698