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

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

Issue 516663003: Surfaceless OutputSurface implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: implement GenRenderbuffers Created 6 years, 3 months 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
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 "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 16 matching lines...) Expand all
27 buffers[i] = test_context_->createBuffer(); 27 buffers[i] = test_context_->createBuffer();
28 } 28 }
29 } 29 }
30 30
31 void TestGLES2Interface::GenFramebuffers(GLsizei n, GLuint* framebuffers) { 31 void TestGLES2Interface::GenFramebuffers(GLsizei n, GLuint* framebuffers) {
32 for (GLsizei i = 0; i < n; ++i) { 32 for (GLsizei i = 0; i < n; ++i) {
33 framebuffers[i] = test_context_->createFramebuffer(); 33 framebuffers[i] = test_context_->createFramebuffer();
34 } 34 }
35 } 35 }
36 36
37 void TestGLES2Interface::GenRenderbuffers(GLsizei n, GLuint* renderbuffers) {
38 for (GLsizei i = 0; i < n; ++i) {
39 renderbuffers[i] = test_context_->createRenderbuffer();
40 }
41 }
42
37 void TestGLES2Interface::GenQueriesEXT(GLsizei n, GLuint* queries) { 43 void TestGLES2Interface::GenQueriesEXT(GLsizei n, GLuint* queries) {
38 for (GLsizei i = 0; i < n; ++i) { 44 for (GLsizei i = 0; i < n; ++i) {
39 queries[i] = test_context_->createQueryEXT(); 45 queries[i] = test_context_->createQueryEXT();
40 } 46 }
41 } 47 }
42 48
43 void TestGLES2Interface::DeleteTextures(GLsizei n, const GLuint* textures) { 49 void TestGLES2Interface::DeleteTextures(GLsizei n, const GLuint* textures) {
44 for (GLsizei i = 0; i < n; ++i) { 50 for (GLsizei i = 0; i < n; ++i) {
45 test_context_->deleteTexture(textures[i]); 51 test_context_->deleteTexture(textures[i]);
46 } 52 }
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 GLuint height, 387 GLuint height,
382 float device_scale) { 388 float device_scale) {
383 test_context_->reshapeWithScaleFactor(width, height, device_scale); 389 test_context_->reshapeWithScaleFactor(width, height, device_scale);
384 } 390 }
385 391
386 void TestGLES2Interface::LoseContextCHROMIUM(GLenum current, GLenum other) { 392 void TestGLES2Interface::LoseContextCHROMIUM(GLenum current, GLenum other) {
387 test_context_->loseContextCHROMIUM(current, other); 393 test_context_->loseContextCHROMIUM(current, other);
388 } 394 }
389 395
390 } // namespace cc 396 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698