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

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

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

Powered by Google App Engine
This is Rietveld 408576698