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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 } | 338 } |
339 | 339 |
340 gpu::CommandBufferNamespace Display::GetNamespaceID() const { | 340 gpu::CommandBufferNamespace Display::GetNamespaceID() const { |
341 return gpu::CommandBufferNamespace::IN_PROCESS; | 341 return gpu::CommandBufferNamespace::IN_PROCESS; |
342 } | 342 } |
343 | 343 |
344 uint64_t Display::GetCommandBufferID() const { | 344 uint64_t Display::GetCommandBufferID() const { |
345 return 0; | 345 return 0; |
346 } | 346 } |
347 | 347 |
| 348 int32_t Display::GetExtraCommandBufferData() const { |
| 349 return 0; |
| 350 } |
| 351 |
348 uint64_t Display::GenerateFenceSyncRelease() { | 352 uint64_t Display::GenerateFenceSyncRelease() { |
349 return next_fence_sync_release_++; | 353 return next_fence_sync_release_++; |
350 } | 354 } |
351 | 355 |
352 bool Display::IsFenceSyncRelease(uint64_t release) { | 356 bool Display::IsFenceSyncRelease(uint64_t release) { |
353 return release > 0 && release < next_fence_sync_release_; | 357 return release > 0 && release < next_fence_sync_release_; |
354 } | 358 } |
355 | 359 |
356 bool Display::IsFenceSyncFlushed(uint64_t release) { | 360 bool Display::IsFenceSyncFlushed(uint64_t release) { |
357 return IsFenceSyncRelease(release); | 361 return IsFenceSyncRelease(release); |
358 } | 362 } |
359 | 363 |
360 bool Display::IsFenceSyncFlushReceived(uint64_t release) { | 364 bool Display::IsFenceSyncFlushReceived(uint64_t release) { |
361 return IsFenceSyncRelease(release); | 365 return IsFenceSyncRelease(release); |
362 } | 366 } |
363 | 367 |
364 void Display::SignalSyncToken(const gpu::SyncToken& sync_token, | 368 void Display::SignalSyncToken(const gpu::SyncToken& sync_token, |
365 const base::Closure& callback) { | 369 const base::Closure& callback) { |
366 NOTIMPLEMENTED(); | 370 NOTIMPLEMENTED(); |
367 } | 371 } |
368 | 372 |
369 bool Display::CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) { | 373 bool Display::CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) { |
370 return false; | 374 return false; |
371 } | 375 } |
372 | 376 |
373 } // namespace egl | 377 } // namespace egl |
OLD | NEW |