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

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

Issue 684093008: command_buffer: Implement IdAllocator by recording ranges in an AVL tree Base URL: https://chromium.googlesource.com/chromium/src.git@new-05-path-fragment-input-gen
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
« no previous file with comments | « no previous file | gpu/command_buffer/common/id_allocator.h » ('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 (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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 static const GLint kMaxRenderbufferSize = 64; 370 static const GLint kMaxRenderbufferSize = 64;
371 static const GLint kMaxTextureImageUnits = 8; 371 static const GLint kMaxTextureImageUnits = 8;
372 static const GLint kMaxTextureSize = 128; 372 static const GLint kMaxTextureSize = 128;
373 static const GLint kMaxVaryingVectors = 8; 373 static const GLint kMaxVaryingVectors = 8;
374 static const GLint kMaxVertexAttribs = 8; 374 static const GLint kMaxVertexAttribs = 8;
375 static const GLint kMaxVertexTextureImageUnits = 0; 375 static const GLint kMaxVertexTextureImageUnits = 0;
376 static const GLint kMaxVertexUniformVectors = 128; 376 static const GLint kMaxVertexUniformVectors = 128;
377 static const GLint kNumCompressedTextureFormats = 0; 377 static const GLint kNumCompressedTextureFormats = 0;
378 static const GLint kNumShaderBinaryFormats = 0; 378 static const GLint kNumShaderBinaryFormats = 0;
379 static const GLuint kStartId = 1024; 379 static const GLuint kStartId = 1024;
380 static const GLuint kBuffersStartId = 380 static const GLuint kBuffersStartId = 1;
381 GLES2Implementation::kClientSideArrayId + 2 * kNumTestContexts;
382 static const GLuint kFramebuffersStartId = 1; 381 static const GLuint kFramebuffersStartId = 1;
383 static const GLuint kProgramsAndShadersStartId = 1; 382 static const GLuint kProgramsAndShadersStartId = 1;
384 static const GLuint kRenderbuffersStartId = 1; 383 static const GLuint kRenderbuffersStartId = 1;
385 static const GLuint kTexturesStartId = 1; 384 static const GLuint kTexturesStartId = 1;
386 static const GLuint kQueriesStartId = 1; 385 static const GLuint kQueriesStartId = 1;
387 static const GLuint kVertexArraysStartId = 1; 386 static const GLuint kVertexArraysStartId = 1;
388 387
389 typedef MockTransferBuffer::ExpectedMemoryInfo ExpectedMemoryInfo; 388 typedef MockTransferBuffer::ExpectedMemoryInfo ExpectedMemoryInfo;
390 389
391 class TestContext { 390 class TestContext {
(...skipping 3013 matching lines...) Expand 10 before | Expand all | Expand 10 after
3405 ContextInitOptions init_options; 3404 ContextInitOptions init_options;
3406 init_options.bind_generates_resource_client = true; 3405 init_options.bind_generates_resource_client = true;
3407 init_options.bind_generates_resource_service = false; 3406 init_options.bind_generates_resource_service = false;
3408 EXPECT_FALSE(Initialize(init_options)); 3407 EXPECT_FALSE(Initialize(init_options));
3409 } 3408 }
3410 3409
3411 #include "gpu/command_buffer/client/gles2_implementation_unittest_autogen.h" 3410 #include "gpu/command_buffer/client/gles2_implementation_unittest_autogen.h"
3412 3411
3413 } // namespace gles2 3412 } // namespace gles2
3414 } // namespace gpu 3413 } // namespace gpu
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/common/id_allocator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698