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/gles2_conform_support/egl/display.h" | 5 #include "gpu/gles2_conform_support/egl/display.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 #include "base/at_exit.h" | 8 #include "base/at_exit.h" |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 } | 342 } |
343 | 343 |
344 gpu::CommandBufferNamespace Display::GetNamespaceID() const { | 344 gpu::CommandBufferNamespace Display::GetNamespaceID() const { |
345 return gpu::CommandBufferNamespace::IN_PROCESS; | 345 return gpu::CommandBufferNamespace::IN_PROCESS; |
346 } | 346 } |
347 | 347 |
348 uint64_t Display::GetCommandBufferID() const { | 348 uint64_t Display::GetCommandBufferID() const { |
349 return 0; | 349 return 0; |
350 } | 350 } |
351 | 351 |
| 352 uint32_t Display::GetExtraCommandBufferData() const { |
| 353 return 0; |
| 354 } |
| 355 |
352 uint64_t Display::GenerateFenceSyncRelease() { | 356 uint64_t Display::GenerateFenceSyncRelease() { |
353 return next_fence_sync_release_++; | 357 return next_fence_sync_release_++; |
354 } | 358 } |
355 | 359 |
356 bool Display::IsFenceSyncRelease(uint64_t release) { | 360 bool Display::IsFenceSyncRelease(uint64_t release) { |
357 return release > 0 && release < next_fence_sync_release_; | 361 return release > 0 && release < next_fence_sync_release_; |
358 } | 362 } |
359 | 363 |
360 bool Display::IsFenceSyncFlushed(uint64_t release) { | 364 bool Display::IsFenceSyncFlushed(uint64_t release) { |
361 return IsFenceSyncRelease(release); | 365 return IsFenceSyncRelease(release); |
362 } | 366 } |
363 | 367 |
364 bool Display::IsFenceSyncFlushReceived(uint64_t release) { | 368 bool Display::IsFenceSyncFlushReceived(uint64_t release) { |
365 return IsFenceSyncRelease(release); | 369 return IsFenceSyncRelease(release); |
366 } | 370 } |
367 | 371 |
368 void Display::SignalSyncToken(const gpu::SyncToken& sync_token, | 372 void Display::SignalSyncToken(const gpu::SyncToken& sync_token, |
369 const base::Closure& callback) { | 373 const base::Closure& callback) { |
370 NOTIMPLEMENTED(); | 374 NOTIMPLEMENTED(); |
371 } | 375 } |
372 | 376 |
373 bool Display::CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) { | 377 bool Display::CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) { |
374 return false; | 378 return false; |
375 } | 379 } |
376 | 380 |
377 } // namespace egl | 381 } // namespace egl |
OLD | NEW |