| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "cc/test/test_gles2_interface.h" |
| 6 |
| 7 #include "base/logging.h" |
| 8 #include "cc/test/test_web_graphics_context_3d.h" |
| 9 |
| 10 namespace cc { |
| 11 |
| 12 TestGLES2Interface::TestGLES2Interface(TestWebGraphicsContext3D* test_context) |
| 13 : test_context_(test_context) { |
| 14 DCHECK(test_context_); |
| 15 } |
| 16 |
| 17 TestGLES2Interface::~TestGLES2Interface() {} |
| 18 |
| 19 GLuint TestGLES2Interface::CreateShader(GLenum type) { |
| 20 return test_context_->createShader(type); |
| 21 } |
| 22 |
| 23 GLuint TestGLES2Interface::CreateProgram() { |
| 24 return test_context_->createProgram(); |
| 25 } |
| 26 |
| 27 void TestGLES2Interface::GetShaderiv( |
| 28 GLuint shader, GLenum pname, GLint* params) { |
| 29 test_context_->getShaderiv(shader, pname, params); |
| 30 } |
| 31 |
| 32 void TestGLES2Interface::GetProgramiv( |
| 33 GLuint program, GLenum pname, GLint* params) { |
| 34 test_context_->getProgramiv(program, pname, params); |
| 35 } |
| 36 |
| 37 void TestGLES2Interface::UseProgram(GLuint program) { |
| 38 test_context_->useProgram(program); |
| 39 } |
| 40 |
| 41 } // namespace cc |
| OLD | NEW |