| 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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 } | 214 } |
| 215 | 215 |
| 216 bool Context::IsFenceSyncFlushed(uint64_t release) { | 216 bool Context::IsFenceSyncFlushed(uint64_t release) { |
| 217 return display_->IsFenceSyncFlushed(release); | 217 return display_->IsFenceSyncFlushed(release); |
| 218 } | 218 } |
| 219 | 219 |
| 220 bool Context::IsFenceSyncFlushReceived(uint64_t release) { | 220 bool Context::IsFenceSyncFlushReceived(uint64_t release) { |
| 221 return display_->IsFenceSyncFlushReceived(release); | 221 return display_->IsFenceSyncFlushReceived(release); |
| 222 } | 222 } |
| 223 | 223 |
| 224 bool Context::IsFenceSyncReleased(uint64_t release) { |
| 225 NOTIMPLEMENTED(); |
| 226 return false; |
| 227 } |
| 228 |
| 224 void Context::SignalSyncToken(const gpu::SyncToken& sync_token, | 229 void Context::SignalSyncToken(const gpu::SyncToken& sync_token, |
| 225 const base::Closure& callback) { | 230 const base::Closure& callback) { |
| 226 NOTIMPLEMENTED(); | 231 NOTIMPLEMENTED(); |
| 227 } | 232 } |
| 228 | 233 |
| 229 bool Context::CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) { | 234 bool Context::CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) { |
| 230 return false; | 235 return false; |
| 231 } | 236 } |
| 232 | 237 |
| 233 void Context::ApplyCurrentContext(gl::GLSurface* current_surface) { | 238 void Context::ApplyCurrentContext(gl::GLSurface* current_surface) { |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 return false; | 395 return false; |
| 391 if (!gl_context_->MakeCurrent(gl_surface)) { | 396 if (!gl_context_->MakeCurrent(gl_surface)) { |
| 392 MarkServiceContextLost(); | 397 MarkServiceContextLost(); |
| 393 return false; | 398 return false; |
| 394 } | 399 } |
| 395 client_gl_context_->Flush(); | 400 client_gl_context_->Flush(); |
| 396 return true; | 401 return true; |
| 397 } | 402 } |
| 398 | 403 |
| 399 } // namespace egl | 404 } // namespace egl |
| OLD | NEW |