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

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

Issue 92593004: Use GLES2Interface for shader programs 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
« no previous file with comments | « cc/test/test_gles2_interface.h ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « cc/test/test_gles2_interface.h ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698