| 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 26 matching lines...) Expand all Loading... |
| 37 } | 37 } |
| 38 } | 38 } |
| 39 | 39 |
| 40 void TestGLES2Interface::GenQueriesEXT(GLsizei n, GLuint* queries) { | 40 void TestGLES2Interface::GenQueriesEXT(GLsizei n, GLuint* queries) { |
| 41 for (GLsizei i = 0; i < n; ++i) { | 41 for (GLsizei i = 0; i < n; ++i) { |
| 42 queries[i] = test_context_->createQueryEXT(); | 42 queries[i] = test_context_->createQueryEXT(); |
| 43 } | 43 } |
| 44 } | 44 } |
| 45 | 45 |
| 46 void TestGLES2Interface::DeleteTextures(GLsizei n, const GLuint* textures) { | 46 void TestGLES2Interface::DeleteTextures(GLsizei n, const GLuint* textures) { |
| 47 for (GLsizei i = 0; i < n; ++i) { | 47 test_context_->deleteTextures(n, textures); |
| 48 test_context_->deleteTexture(textures[i]); | |
| 49 } | |
| 50 } | 48 } |
| 51 | 49 |
| 52 void TestGLES2Interface::DeleteBuffers(GLsizei n, const GLuint* buffers) { | 50 void TestGLES2Interface::DeleteBuffers(GLsizei n, const GLuint* buffers) { |
| 53 for (GLsizei i = 0; i < n; ++i) { | 51 for (GLsizei i = 0; i < n; ++i) { |
| 54 test_context_->deleteBuffer(buffers[i]); | 52 test_context_->deleteBuffer(buffers[i]); |
| 55 } | 53 } |
| 56 } | 54 } |
| 57 | 55 |
| 58 void TestGLES2Interface::DeleteFramebuffers(GLsizei n, | 56 void TestGLES2Interface::DeleteFramebuffers(GLsizei n, |
| 59 const GLuint* framebuffers) { | 57 const GLuint* framebuffers) { |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 return GL_NO_ERROR; | 394 return GL_NO_ERROR; |
| 397 } | 395 } |
| 398 | 396 |
| 399 void TestGLES2Interface::set_test_context(TestWebGraphicsContext3D* context) { | 397 void TestGLES2Interface::set_test_context(TestWebGraphicsContext3D* context) { |
| 400 DCHECK(!test_context_); | 398 DCHECK(!test_context_); |
| 401 test_context_ = context; | 399 test_context_ = context; |
| 402 InitializeTestContext(test_context_); | 400 InitializeTestContext(test_context_); |
| 403 } | 401 } |
| 404 | 402 |
| 405 } // namespace cc | 403 } // namespace cc |
| OLD | NEW |