| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/command_buffer/tests/gl_manager.h" | 5 #include "gpu/command_buffer/tests/gl_manager.h" |
| 6 | 6 |
| 7 #include <GLES2/gl2.h> | 7 #include <GLES2/gl2.h> |
| 8 #include <GLES2/gl2ext.h> | 8 #include <GLES2/gl2ext.h> |
| 9 #include <GLES2/gl2extchromium.h> | 9 #include <GLES2/gl2extchromium.h> |
| 10 | 10 |
| (...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 502 } | 502 } |
| 503 | 503 |
| 504 gpu::CommandBufferNamespace GLManager::GetNamespaceID() const { | 504 gpu::CommandBufferNamespace GLManager::GetNamespaceID() const { |
| 505 return gpu::CommandBufferNamespace::IN_PROCESS; | 505 return gpu::CommandBufferNamespace::IN_PROCESS; |
| 506 } | 506 } |
| 507 | 507 |
| 508 uint64_t GLManager::GetCommandBufferID() const { | 508 uint64_t GLManager::GetCommandBufferID() const { |
| 509 return command_buffer_id_; | 509 return command_buffer_id_; |
| 510 } | 510 } |
| 511 | 511 |
| 512 int32_t GLManager::GetExtraCommandBufferData() const { |
| 513 return 0; |
| 514 } |
| 515 |
| 512 uint64_t GLManager::GenerateFenceSyncRelease() { | 516 uint64_t GLManager::GenerateFenceSyncRelease() { |
| 513 return next_fence_sync_release_++; | 517 return next_fence_sync_release_++; |
| 514 } | 518 } |
| 515 | 519 |
| 516 bool GLManager::IsFenceSyncRelease(uint64_t release) { | 520 bool GLManager::IsFenceSyncRelease(uint64_t release) { |
| 517 return release > 0 && release < next_fence_sync_release_; | 521 return release > 0 && release < next_fence_sync_release_; |
| 518 } | 522 } |
| 519 | 523 |
| 520 bool GLManager::IsFenceSyncFlushed(uint64_t release) { | 524 bool GLManager::IsFenceSyncFlushed(uint64_t release) { |
| 521 return IsFenceSyncRelease(release); | 525 return IsFenceSyncRelease(release); |
| 522 } | 526 } |
| 523 | 527 |
| 524 bool GLManager::IsFenceSyncFlushReceived(uint64_t release) { | 528 bool GLManager::IsFenceSyncFlushReceived(uint64_t release) { |
| 525 return IsFenceSyncRelease(release); | 529 return IsFenceSyncRelease(release); |
| 526 } | 530 } |
| 527 | 531 |
| 528 void GLManager::SignalSyncToken(const gpu::SyncToken& sync_token, | 532 void GLManager::SignalSyncToken(const gpu::SyncToken& sync_token, |
| 529 const base::Closure& callback) { | 533 const base::Closure& callback) { |
| 530 NOTIMPLEMENTED(); | 534 NOTIMPLEMENTED(); |
| 531 } | 535 } |
| 532 | 536 |
| 533 bool GLManager::CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) { | 537 bool GLManager::CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) { |
| 534 return false; | 538 return false; |
| 535 } | 539 } |
| 536 | 540 |
| 537 } // namespace gpu | 541 } // namespace gpu |
| OLD | NEW |