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

Side by Side Diff: gpu/command_buffer/tests/gl_manager.cc

Issue 1489573003: Added an extra sync token field for extra command buffer identification. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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) 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
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 uint32_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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698