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

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

Issue 693943003: Update from https://crrev.com/302630 (Closed) Base URL: git@github.com:domokit/mojo.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 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 sizeof(cmds::GetShaderPrecisionFormat::Result) * 12); 438 sizeof(cmds::GetShaderPrecisionFormat::Result) * 12);
439 439
440 { 440 {
441 InSequence sequence; 441 InSequence sequence;
442 442
443 EXPECT_CALL(*command_buffer_, OnFlush()) 443 EXPECT_CALL(*command_buffer_, OnFlush())
444 .WillOnce(SetMemory(mem1.ptr + sizeof(int_state), int_state)) 444 .WillOnce(SetMemory(mem1.ptr + sizeof(int_state), int_state))
445 .RetiresOnSaturation(); 445 .RetiresOnSaturation();
446 GetNextToken(); // eat the token that starting up will use. 446 GetNextToken(); // eat the token that starting up will use.
447 447
448 const bool support_client_side_arrays = true;
448 gl_.reset(new GLES2Implementation(helper_.get(), 449 gl_.reset(new GLES2Implementation(helper_.get(),
449 share_group, 450 share_group,
450 transfer_buffer_.get(), 451 transfer_buffer_.get(),
451 bind_generates_resource_client, 452 bind_generates_resource_client,
452 lose_context_when_out_of_memory, 453 lose_context_when_out_of_memory,
454 support_client_side_arrays,
453 gpu_control_.get())); 455 gpu_control_.get()));
454 456
455 if (!gl_->Initialize(kTransferBufferSize, 457 if (!gl_->Initialize(kTransferBufferSize,
456 kTransferBufferSize, 458 kTransferBufferSize,
457 kTransferBufferSize, 459 kTransferBufferSize,
458 GLES2Implementation::kNoLimit)) 460 GLES2Implementation::kNoLimit))
459 return false; 461 return false;
460 } 462 }
461 463
462 EXPECT_CALL(*command_buffer_, OnFlush()).Times(1).RetiresOnSaturation(); 464 EXPECT_CALL(*command_buffer_, OnFlush()).Times(1).RetiresOnSaturation();
(...skipping 2940 matching lines...) Expand 10 before | Expand all | Expand 10 after
3403 ContextInitOptions init_options; 3405 ContextInitOptions init_options;
3404 init_options.bind_generates_resource_client = true; 3406 init_options.bind_generates_resource_client = true;
3405 init_options.bind_generates_resource_service = false; 3407 init_options.bind_generates_resource_service = false;
3406 EXPECT_FALSE(Initialize(init_options)); 3408 EXPECT_FALSE(Initialize(init_options));
3407 } 3409 }
3408 3410
3409 #include "gpu/command_buffer/client/gles2_implementation_unittest_autogen.h" 3411 #include "gpu/command_buffer/client/gles2_implementation_unittest_autogen.h"
3410 3412
3411 } // namespace gles2 3413 } // namespace gles2
3412 } // namespace gpu 3414 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation.cc ('k') | gpu/command_buffer/client/gpu_memory_buffer_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698