OLD | NEW |
---|---|
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 Loading... | |
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 Loading... | |
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 |
OLD | NEW |