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 | 9 |
10 namespace cc { | 10 namespace cc { |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 } | 171 } |
172 | 172 |
173 void TestGLES2Interface::BindFramebuffer(GLenum target, GLuint buffer) { | 173 void TestGLES2Interface::BindFramebuffer(GLenum target, GLuint buffer) { |
174 test_context_->bindFramebuffer(target, buffer); | 174 test_context_->bindFramebuffer(target, buffer); |
175 } | 175 } |
176 | 176 |
177 void TestGLES2Interface::BindBuffer(GLenum target, GLuint buffer) { | 177 void TestGLES2Interface::BindBuffer(GLenum target, GLuint buffer) { |
178 test_context_->bindBuffer(target, buffer); | 178 test_context_->bindBuffer(target, buffer); |
179 } | 179 } |
180 | 180 |
| 181 void TestGLES2Interface::PixelStorei(GLenum pname, GLint param) { |
| 182 test_context_->pixelStorei(pname, param); |
| 183 } |
| 184 |
181 void TestGLES2Interface::TexImage2D(GLenum target, | 185 void TestGLES2Interface::TexImage2D(GLenum target, |
182 GLint level, | 186 GLint level, |
183 GLint internalformat, | 187 GLint internalformat, |
184 GLsizei width, | 188 GLsizei width, |
185 GLsizei height, | 189 GLsizei height, |
186 GLint border, | 190 GLint border, |
187 GLenum format, | 191 GLenum format, |
188 GLenum type, | 192 GLenum type, |
189 const void* pixels) { | 193 const void* pixels) { |
190 test_context_->texImage2D(target, | 194 test_context_->texImage2D(target, |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 GLuint height, | 413 GLuint height, |
410 float device_scale) { | 414 float device_scale) { |
411 test_context_->reshapeWithScaleFactor(width, height, device_scale); | 415 test_context_->reshapeWithScaleFactor(width, height, device_scale); |
412 } | 416 } |
413 | 417 |
414 void TestGLES2Interface::LoseContextCHROMIUM(GLenum current, GLenum other) { | 418 void TestGLES2Interface::LoseContextCHROMIUM(GLenum current, GLenum other) { |
415 test_context_->loseContextCHROMIUM(current, other); | 419 test_context_->loseContextCHROMIUM(current, other); |
416 } | 420 } |
417 | 421 |
418 } // namespace cc | 422 } // namespace cc |
OLD | NEW |