OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "cc/test/test_gles2_interface.h" | 5 #include "cc/test/test_gles2_interface.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "cc/test/test_web_graphics_context_3d.h" | 8 #include "cc/test/test_web_graphics_context_3d.h" |
9 #include "gpu/GLES2/gl2extchromium.h" | 9 #include "gpu/GLES2/gl2extchromium.h" |
10 | 10 |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 GLsizeiptr size, | 320 GLsizeiptr size, |
321 const void* data, | 321 const void* data, |
322 GLenum usage) { | 322 GLenum usage) { |
323 test_context_->bufferData(target, size, data, usage); | 323 test_context_->bufferData(target, size, data, usage); |
324 } | 324 } |
325 | 325 |
326 GLuint TestGLES2Interface::InsertSyncPointCHROMIUM() { | 326 GLuint TestGLES2Interface::InsertSyncPointCHROMIUM() { |
327 return test_context_->insertSyncPoint(); | 327 return test_context_->insertSyncPoint(); |
328 } | 328 } |
329 | 329 |
| 330 GLuint64 TestGLES2Interface::InsertFenceSyncCHROMIUM() { |
| 331 return test_context_->insertFenceSync(); |
| 332 } |
| 333 |
| 334 void TestGLES2Interface::GenSyncTokenCHROMIUM(GLuint64 fence_sync, |
| 335 GLbyte* sync_token) { |
| 336 test_context_->genSyncToken(fence_sync, sync_token); |
| 337 } |
| 338 |
| 339 void TestGLES2Interface::GenUnverifiedSyncTokenCHROMIUM(GLuint64 fence_sync, |
| 340 GLbyte* sync_token) { |
| 341 test_context_->genSyncToken(fence_sync, sync_token); |
| 342 } |
| 343 |
| 344 void TestGLES2Interface::VerifySyncTokensCHROMIUM(GLbyte** sync_tokens, |
| 345 GLsizei count) { |
| 346 test_context_->verifySyncTokens(sync_tokens, count); |
| 347 } |
| 348 |
330 void TestGLES2Interface::WaitSyncTokenCHROMIUM(const GLbyte* sync_token) { | 349 void TestGLES2Interface::WaitSyncTokenCHROMIUM(const GLbyte* sync_token) { |
331 test_context_->waitSyncToken(sync_token); | 350 test_context_->waitSyncToken(sync_token); |
332 } | 351 } |
333 | 352 |
334 void TestGLES2Interface::BeginQueryEXT(GLenum target, GLuint id) { | 353 void TestGLES2Interface::BeginQueryEXT(GLenum target, GLuint id) { |
335 test_context_->beginQueryEXT(target, id); | 354 test_context_->beginQueryEXT(target, id); |
336 } | 355 } |
337 | 356 |
338 void TestGLES2Interface::EndQueryEXT(GLenum target) { | 357 void TestGLES2Interface::EndQueryEXT(GLenum target) { |
339 test_context_->endQueryEXT(target); | 358 test_context_->endQueryEXT(target); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 test_context_->loseContextCHROMIUM(current, other); | 407 test_context_->loseContextCHROMIUM(current, other); |
389 } | 408 } |
390 | 409 |
391 GLenum TestGLES2Interface::GetGraphicsResetStatusKHR() { | 410 GLenum TestGLES2Interface::GetGraphicsResetStatusKHR() { |
392 if (test_context_->isContextLost()) | 411 if (test_context_->isContextLost()) |
393 return GL_UNKNOWN_CONTEXT_RESET_KHR; | 412 return GL_UNKNOWN_CONTEXT_RESET_KHR; |
394 return GL_NO_ERROR; | 413 return GL_NO_ERROR; |
395 } | 414 } |
396 | 415 |
397 } // namespace cc | 416 } // namespace cc |
OLD | NEW |