Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: cc/test/test_gles2_interface.cc

Issue 93433004: Use GLES2Interface for shaders and programs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« cc/output/shader_unittest.cc ('K') | « cc/test/test_gles2_interface.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« cc/output/shader_unittest.cc ('K') | « cc/test/test_gles2_interface.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698