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

Side by Side Diff: gpu/command_buffer/client/gles2_implementation_unittest.cc

Issue 795243002: Add TransformFeedback related APIs to command buffer: PART I. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Tests for GLES2Implementation. 5 // Tests for GLES2Implementation.
6 6
7 #include "gpu/command_buffer/client/gles2_implementation.h" 7 #include "gpu/command_buffer/client/gles2_implementation.h"
8 8
9 #include <limits> 9 #include <limits>
10 10
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 static const GLint kNumCompressedTextureFormats = 0; 379 static const GLint kNumCompressedTextureFormats = 0;
380 static const GLint kNumShaderBinaryFormats = 0; 380 static const GLint kNumShaderBinaryFormats = 0;
381 static const GLuint kStartId = 1024; 381 static const GLuint kStartId = 1024;
382 static const GLuint kBuffersStartId = 382 static const GLuint kBuffersStartId =
383 GLES2Implementation::kClientSideArrayId + 2 * kNumTestContexts; 383 GLES2Implementation::kClientSideArrayId + 2 * kNumTestContexts;
384 static const GLuint kFramebuffersStartId = 1; 384 static const GLuint kFramebuffersStartId = 1;
385 static const GLuint kProgramsAndShadersStartId = 1; 385 static const GLuint kProgramsAndShadersStartId = 1;
386 static const GLuint kRenderbuffersStartId = 1; 386 static const GLuint kRenderbuffersStartId = 1;
387 static const GLuint kSamplersStartId = 1; 387 static const GLuint kSamplersStartId = 1;
388 static const GLuint kTexturesStartId = 1; 388 static const GLuint kTexturesStartId = 1;
389 static const GLuint kTransformFeedbacksStartId = 1;
389 static const GLuint kQueriesStartId = 1; 390 static const GLuint kQueriesStartId = 1;
390 static const GLuint kVertexArraysStartId = 1; 391 static const GLuint kVertexArraysStartId = 1;
391 static const GLuint kValuebuffersStartId = 1; 392 static const GLuint kValuebuffersStartId = 1;
392 393
393 typedef MockTransferBuffer::ExpectedMemoryInfo ExpectedMemoryInfo; 394 typedef MockTransferBuffer::ExpectedMemoryInfo ExpectedMemoryInfo;
394 395
395 class TestContext { 396 class TestContext {
396 public: 397 public:
397 TestContext() : commands_(NULL), token_(0) {} 398 TestContext() : commands_(NULL), token_(0) {}
398 399
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 const GLint GLES2ImplementationTest::kMaxVertexUniformVectors; 751 const GLint GLES2ImplementationTest::kMaxVertexUniformVectors;
751 const GLint GLES2ImplementationTest::kNumCompressedTextureFormats; 752 const GLint GLES2ImplementationTest::kNumCompressedTextureFormats;
752 const GLint GLES2ImplementationTest::kNumShaderBinaryFormats; 753 const GLint GLES2ImplementationTest::kNumShaderBinaryFormats;
753 const GLuint GLES2ImplementationTest::kStartId; 754 const GLuint GLES2ImplementationTest::kStartId;
754 const GLuint GLES2ImplementationTest::kBuffersStartId; 755 const GLuint GLES2ImplementationTest::kBuffersStartId;
755 const GLuint GLES2ImplementationTest::kFramebuffersStartId; 756 const GLuint GLES2ImplementationTest::kFramebuffersStartId;
756 const GLuint GLES2ImplementationTest::kProgramsAndShadersStartId; 757 const GLuint GLES2ImplementationTest::kProgramsAndShadersStartId;
757 const GLuint GLES2ImplementationTest::kRenderbuffersStartId; 758 const GLuint GLES2ImplementationTest::kRenderbuffersStartId;
758 const GLuint GLES2ImplementationTest::kSamplersStartId; 759 const GLuint GLES2ImplementationTest::kSamplersStartId;
759 const GLuint GLES2ImplementationTest::kTexturesStartId; 760 const GLuint GLES2ImplementationTest::kTexturesStartId;
761 const GLuint GLES2ImplementationTest::kTransformFeedbacksStartId;
760 const GLuint GLES2ImplementationTest::kQueriesStartId; 762 const GLuint GLES2ImplementationTest::kQueriesStartId;
761 const GLuint GLES2ImplementationTest::kVertexArraysStartId; 763 const GLuint GLES2ImplementationTest::kVertexArraysStartId;
762 const GLuint GLES2ImplementationTest::kValuebuffersStartId; 764 const GLuint GLES2ImplementationTest::kValuebuffersStartId;
763 #endif 765 #endif
764 766
765 TEST_F(GLES2ImplementationTest, Basic) { 767 TEST_F(GLES2ImplementationTest, Basic) {
766 EXPECT_TRUE(gl_->share_group() != NULL); 768 EXPECT_TRUE(gl_->share_group() != NULL);
767 } 769 }
768 770
769 TEST_F(GLES2ImplementationTest, GetBucketContents) { 771 TEST_F(GLES2ImplementationTest, GetBucketContents) {
(...skipping 2546 matching lines...) Expand 10 before | Expand all | Expand 10 after
3316 TEST_F(GLES2ImplementationManualInitTest, FailInitOnTransferBufferFail) { 3318 TEST_F(GLES2ImplementationManualInitTest, FailInitOnTransferBufferFail) {
3317 ContextInitOptions init_options; 3319 ContextInitOptions init_options;
3318 init_options.transfer_buffer_initialize_fail = true; 3320 init_options.transfer_buffer_initialize_fail = true;
3319 EXPECT_FALSE(Initialize(init_options)); 3321 EXPECT_FALSE(Initialize(init_options));
3320 } 3322 }
3321 3323
3322 #include "gpu/command_buffer/client/gles2_implementation_unittest_autogen.h" 3324 #include "gpu/command_buffer/client/gles2_implementation_unittest_autogen.h"
3323 3325
3324 } // namespace gles2 3326 } // namespace gles2
3325 } // namespace gpu 3327 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698