| 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 <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 return NULL; | 122 return NULL; |
| 123 } | 123 } |
| 124 | 124 |
| 125 GLint TestGLES2Interface::GetUniformLocation( | 125 GLint TestGLES2Interface::GetUniformLocation( |
| 126 GLuint program, | 126 GLuint program, |
| 127 const GLchar* name) { | 127 const GLchar* name) { |
| 128 return 0; | 128 return 0; |
| 129 } | 129 } |
| 130 | 130 |
| 131 void TestGLES2Interface::GetVertexAttribPointerv( | 131 void TestGLES2Interface::GetVertexAttribPointerv( |
| 132 GLuint index, | 132 GLuint index, GLenum pname, void** pointer) { |
| 133 GLenum pname, | |
| 134 void** pointer) { | |
| 135 *pointer = NULL; | 133 *pointer = NULL; |
| 136 } | 134 } |
| 137 | 135 |
| 136 void TestGLES2Interface::GetProgramiv( |
| 137 GLuint program, GLenum pname, GLint* params) { |
| 138 if (pname == GL_LINK_STATUS) |
| 139 *params = 1; |
| 140 } |
| 141 |
| 142 void TestGLES2Interface::GetShaderiv(GLuint shader, |
| 143 GLenum pname, |
| 144 GLint* params) { |
| 145 if (pname == GL_COMPILE_STATUS) |
| 146 *params = 1; |
| 147 } |
| 148 |
| 138 void TestGLES2Interface::GenBuffers(GLsizei count, GLuint* ids) { | 149 void TestGLES2Interface::GenBuffers(GLsizei count, GLuint* ids) { |
| 139 for (int i = 0; i < count; ++i) | 150 for (int i = 0; i < count; ++i) |
| 140 ids[i] = NextBufferId(); | 151 ids[i] = NextBufferId(); |
| 141 } | 152 } |
| 142 | 153 |
| 143 void TestGLES2Interface::GenFramebuffers( | 154 void TestGLES2Interface::GenFramebuffers( |
| 144 GLsizei count, GLuint* ids) { | 155 GLsizei count, GLuint* ids) { |
| 145 for (int i = 0; i < count; ++i) | 156 for (int i = 0; i < count; ++i) |
| 146 ids[i] = kFramebufferId | context_id_ << 16; | 157 ids[i] = kFramebufferId | context_id_ << 16; |
| 147 } | 158 } |
| (...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 583 | 594 |
| 584 TestGLES2Interface::Buffer::Buffer() : target(0), size(0) {} | 595 TestGLES2Interface::Buffer::Buffer() : target(0), size(0) {} |
| 585 | 596 |
| 586 TestGLES2Interface::Buffer::~Buffer() {} | 597 TestGLES2Interface::Buffer::~Buffer() {} |
| 587 | 598 |
| 588 TestGLES2Interface::Image::Image() {} | 599 TestGLES2Interface::Image::Image() {} |
| 589 | 600 |
| 590 TestGLES2Interface::Image::~Image() {} | 601 TestGLES2Interface::Image::~Image() {} |
| 591 | 602 |
| 592 } // namespace cc | 603 } // namespace cc |
| 604 |
| OLD | NEW |