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

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

Issue 706903004: Revert of Add subscribeUniform extension pipeline (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 static const GLint kNumShaderBinaryFormats = 0; 376 static const GLint kNumShaderBinaryFormats = 0;
377 static const GLuint kStartId = 1024; 377 static const GLuint kStartId = 1024;
378 static const GLuint kBuffersStartId = 378 static const GLuint kBuffersStartId =
379 GLES2Implementation::kClientSideArrayId + 2 * kNumTestContexts; 379 GLES2Implementation::kClientSideArrayId + 2 * kNumTestContexts;
380 static const GLuint kFramebuffersStartId = 1; 380 static const GLuint kFramebuffersStartId = 1;
381 static const GLuint kProgramsAndShadersStartId = 1; 381 static const GLuint kProgramsAndShadersStartId = 1;
382 static const GLuint kRenderbuffersStartId = 1; 382 static const GLuint kRenderbuffersStartId = 1;
383 static const GLuint kTexturesStartId = 1; 383 static const GLuint kTexturesStartId = 1;
384 static const GLuint kQueriesStartId = 1; 384 static const GLuint kQueriesStartId = 1;
385 static const GLuint kVertexArraysStartId = 1; 385 static const GLuint kVertexArraysStartId = 1;
386 static const GLuint kValuebuffersStartId = 1;
387 386
388 typedef MockTransferBuffer::ExpectedMemoryInfo ExpectedMemoryInfo; 387 typedef MockTransferBuffer::ExpectedMemoryInfo ExpectedMemoryInfo;
389 388
390 class TestContext { 389 class TestContext {
391 public: 390 public:
392 TestContext() : commands_(NULL), token_(0) {} 391 TestContext() : commands_(NULL), token_(0) {}
393 392
394 bool Initialize(ShareGroup* share_group, 393 bool Initialize(ShareGroup* share_group,
395 bool bind_generates_resource_client, 394 bool bind_generates_resource_client,
396 bool bind_generates_resource_service, 395 bool bind_generates_resource_service,
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 const GLint GLES2ImplementationTest::kNumCompressedTextureFormats; 748 const GLint GLES2ImplementationTest::kNumCompressedTextureFormats;
750 const GLint GLES2ImplementationTest::kNumShaderBinaryFormats; 749 const GLint GLES2ImplementationTest::kNumShaderBinaryFormats;
751 const GLuint GLES2ImplementationTest::kStartId; 750 const GLuint GLES2ImplementationTest::kStartId;
752 const GLuint GLES2ImplementationTest::kBuffersStartId; 751 const GLuint GLES2ImplementationTest::kBuffersStartId;
753 const GLuint GLES2ImplementationTest::kFramebuffersStartId; 752 const GLuint GLES2ImplementationTest::kFramebuffersStartId;
754 const GLuint GLES2ImplementationTest::kProgramsAndShadersStartId; 753 const GLuint GLES2ImplementationTest::kProgramsAndShadersStartId;
755 const GLuint GLES2ImplementationTest::kRenderbuffersStartId; 754 const GLuint GLES2ImplementationTest::kRenderbuffersStartId;
756 const GLuint GLES2ImplementationTest::kTexturesStartId; 755 const GLuint GLES2ImplementationTest::kTexturesStartId;
757 const GLuint GLES2ImplementationTest::kQueriesStartId; 756 const GLuint GLES2ImplementationTest::kQueriesStartId;
758 const GLuint GLES2ImplementationTest::kVertexArraysStartId; 757 const GLuint GLES2ImplementationTest::kVertexArraysStartId;
759 const GLuint GLES2ImplementationTest::kValuebuffersStartId;
760 #endif 758 #endif
761 759
762 TEST_F(GLES2ImplementationTest, Basic) { 760 TEST_F(GLES2ImplementationTest, Basic) {
763 EXPECT_TRUE(gl_->share_group() != NULL); 761 EXPECT_TRUE(gl_->share_group() != NULL);
764 } 762 }
765 763
766 TEST_F(GLES2ImplementationTest, GetBucketContents) { 764 TEST_F(GLES2ImplementationTest, GetBucketContents) {
767 const uint32 kBucketId = GLES2Implementation::kResultBucketId; 765 const uint32 kBucketId = GLES2Implementation::kResultBucketId;
768 const uint32 kTestSize = MaxTransferBufferSize() + 32; 766 const uint32 kTestSize = MaxTransferBufferSize() + 32;
769 767
(...skipping 2637 matching lines...) Expand 10 before | Expand all | Expand 10 after
3407 ContextInitOptions init_options; 3405 ContextInitOptions init_options;
3408 init_options.bind_generates_resource_client = true; 3406 init_options.bind_generates_resource_client = true;
3409 init_options.bind_generates_resource_service = false; 3407 init_options.bind_generates_resource_service = false;
3410 EXPECT_FALSE(Initialize(init_options)); 3408 EXPECT_FALSE(Initialize(init_options));
3411 } 3409 }
3412 3410
3413 #include "gpu/command_buffer/client/gles2_implementation_unittest_autogen.h" 3411 #include "gpu/command_buffer/client/gles2_implementation_unittest_autogen.h"
3414 3412
3415 } // namespace gles2 3413 } // namespace gles2
3416 } // namespace gpu 3414 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698