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

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

Issue 1495893005: Revert of 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
« no previous file with comments | « gpu/command_buffer/tests/gl_manager.h ('k') | gpu/gles2_conform_support/egl/display.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
512 uint64_t GLManager::GenerateFenceSyncRelease() { 508 uint64_t GLManager::GenerateFenceSyncRelease() {
513 return next_fence_sync_release_++; 509 return next_fence_sync_release_++;
514 } 510 }
515 511
516 bool GLManager::IsFenceSyncRelease(uint64_t release) { 512 bool GLManager::IsFenceSyncRelease(uint64_t release) {
517 return release > 0 && release < next_fence_sync_release_; 513 return release > 0 && release < next_fence_sync_release_;
518 } 514 }
519 515
520 bool GLManager::IsFenceSyncFlushed(uint64_t release) { 516 bool GLManager::IsFenceSyncFlushed(uint64_t release) {
521 return IsFenceSyncRelease(release); 517 return IsFenceSyncRelease(release);
522 } 518 }
523 519
524 bool GLManager::IsFenceSyncFlushReceived(uint64_t release) { 520 bool GLManager::IsFenceSyncFlushReceived(uint64_t release) {
525 return IsFenceSyncRelease(release); 521 return IsFenceSyncRelease(release);
526 } 522 }
527 523
528 void GLManager::SignalSyncToken(const gpu::SyncToken& sync_token, 524 void GLManager::SignalSyncToken(const gpu::SyncToken& sync_token,
529 const base::Closure& callback) { 525 const base::Closure& callback) {
530 NOTIMPLEMENTED(); 526 NOTIMPLEMENTED();
531 } 527 }
532 528
533 bool GLManager::CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) { 529 bool GLManager::CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) {
534 return false; 530 return false;
535 } 531 }
536 532
537 } // namespace gpu 533 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/tests/gl_manager.h ('k') | gpu/gles2_conform_support/egl/display.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698