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 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 } | 498 } |
499 | 499 |
500 gpu::CommandBufferNamespace GLManager::GetNamespaceID() const { | 500 gpu::CommandBufferNamespace GLManager::GetNamespaceID() const { |
501 return gpu::CommandBufferNamespace::IN_PROCESS; | 501 return gpu::CommandBufferNamespace::IN_PROCESS; |
502 } | 502 } |
503 | 503 |
504 uint64_t GLManager::GetCommandBufferID() const { | 504 uint64_t GLManager::GetCommandBufferID() const { |
505 return command_buffer_id_; | 505 return command_buffer_id_; |
506 } | 506 } |
507 | 507 |
| 508 int32_t GLManager::GetExtraCommandBufferData() const { |
| 509 return 0; |
| 510 } |
| 511 |
508 uint64_t GLManager::GenerateFenceSyncRelease() { | 512 uint64_t GLManager::GenerateFenceSyncRelease() { |
509 return next_fence_sync_release_++; | 513 return next_fence_sync_release_++; |
510 } | 514 } |
511 | 515 |
512 bool GLManager::IsFenceSyncRelease(uint64_t release) { | 516 bool GLManager::IsFenceSyncRelease(uint64_t release) { |
513 return release > 0 && release < next_fence_sync_release_; | 517 return release > 0 && release < next_fence_sync_release_; |
514 } | 518 } |
515 | 519 |
516 bool GLManager::IsFenceSyncFlushed(uint64_t release) { | 520 bool GLManager::IsFenceSyncFlushed(uint64_t release) { |
517 return IsFenceSyncRelease(release); | 521 return IsFenceSyncRelease(release); |
518 } | 522 } |
519 | 523 |
520 bool GLManager::IsFenceSyncFlushReceived(uint64_t release) { | 524 bool GLManager::IsFenceSyncFlushReceived(uint64_t release) { |
521 return IsFenceSyncRelease(release); | 525 return IsFenceSyncRelease(release); |
522 } | 526 } |
523 | 527 |
524 void GLManager::SignalSyncToken(const gpu::SyncToken& sync_token, | 528 void GLManager::SignalSyncToken(const gpu::SyncToken& sync_token, |
525 const base::Closure& callback) { | 529 const base::Closure& callback) { |
526 NOTIMPLEMENTED(); | 530 NOTIMPLEMENTED(); |
527 } | 531 } |
528 | 532 |
529 bool GLManager::CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) { | 533 bool GLManager::CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) { |
530 return false; | 534 return false; |
531 } | 535 } |
532 | 536 |
533 } // namespace gpu | 537 } // namespace gpu |
OLD | NEW |