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

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: Return False on invalid stream id 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
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
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