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 | |
352 uint64_t Display::GenerateFenceSyncRelease() { | 348 uint64_t Display::GenerateFenceSyncRelease() { |
353 return next_fence_sync_release_++; | 349 return next_fence_sync_release_++; |
354 } | 350 } |
355 | 351 |
356 bool Display::IsFenceSyncRelease(uint64_t release) { | 352 bool Display::IsFenceSyncRelease(uint64_t release) { |
357 return release > 0 && release < next_fence_sync_release_; | 353 return release > 0 && release < next_fence_sync_release_; |
358 } | 354 } |
359 | 355 |
360 bool Display::IsFenceSyncFlushed(uint64_t release) { | 356 bool Display::IsFenceSyncFlushed(uint64_t release) { |
361 return IsFenceSyncRelease(release); | 357 return IsFenceSyncRelease(release); |
362 } | 358 } |
363 | 359 |
364 bool Display::IsFenceSyncFlushReceived(uint64_t release) { | 360 bool Display::IsFenceSyncFlushReceived(uint64_t release) { |
365 return IsFenceSyncRelease(release); | 361 return IsFenceSyncRelease(release); |
366 } | 362 } |
367 | 363 |
368 void Display::SignalSyncToken(const gpu::SyncToken& sync_token, | 364 void Display::SignalSyncToken(const gpu::SyncToken& sync_token, |
369 const base::Closure& callback) { | 365 const base::Closure& callback) { |
370 NOTIMPLEMENTED(); | 366 NOTIMPLEMENTED(); |
371 } | 367 } |
372 | 368 |
373 bool Display::CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) { | 369 bool Display::CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) { |
374 return false; | 370 return false; |
375 } | 371 } |
376 | 372 |
377 } // namespace egl | 373 } // namespace egl |
OLD | NEW |