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

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

Issue 253943002: Remove CommandBuffer::GetState (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: I forgot Poland^Wmojo Created 6 years, 7 months 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 | Annotate | Revision Log
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 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 GLES2Implementation::kNoLimit)) 459 GLES2Implementation::kNoLimit))
460 return false; 460 return false;
461 } 461 }
462 462
463 EXPECT_CALL(*command_buffer_, OnFlush()).Times(1).RetiresOnSaturation(); 463 EXPECT_CALL(*command_buffer_, OnFlush()).Times(1).RetiresOnSaturation();
464 helper_->CommandBufferHelper::Finish(); 464 helper_->CommandBufferHelper::Finish();
465 ::testing::Mock::VerifyAndClearExpectations(gl_.get()); 465 ::testing::Mock::VerifyAndClearExpectations(gl_.get());
466 466
467 scoped_refptr<Buffer> ring_buffer = helper_->get_ring_buffer(); 467 scoped_refptr<Buffer> ring_buffer = helper_->get_ring_buffer();
468 commands_ = static_cast<CommandBufferEntry*>(ring_buffer->memory()) + 468 commands_ = static_cast<CommandBufferEntry*>(ring_buffer->memory()) +
469 command_buffer()->GetState().put_offset; 469 command_buffer()->GetLastState().put_offset;
470 ClearCommands(); 470 ClearCommands();
471 EXPECT_TRUE(transfer_buffer_->InSync()); 471 EXPECT_TRUE(transfer_buffer_->InSync());
472 472
473 ::testing::Mock::VerifyAndClearExpectations(command_buffer()); 473 ::testing::Mock::VerifyAndClearExpectations(command_buffer());
474 return true; 474 return true;
475 } 475 }
476 476
477 void TearDown() { 477 void TearDown() {
478 Mock::VerifyAndClear(gl_.get()); 478 Mock::VerifyAndClear(gl_.get());
479 EXPECT_CALL(*command_buffer(), OnFlush()).Times(AnyNumber()); 479 EXPECT_CALL(*command_buffer(), OnFlush()).Times(AnyNumber());
(...skipping 2805 matching lines...) Expand 10 before | Expand all | Expand 10 after
3285 ContextInitOptions init_options; 3285 ContextInitOptions init_options;
3286 init_options.bind_generates_resource_client = true; 3286 init_options.bind_generates_resource_client = true;
3287 init_options.bind_generates_resource_service = false; 3287 init_options.bind_generates_resource_service = false;
3288 EXPECT_FALSE(Initialize(init_options)); 3288 EXPECT_FALSE(Initialize(init_options));
3289 } 3289 }
3290 3290
3291 #include "gpu/command_buffer/client/gles2_implementation_unittest_autogen.h" 3291 #include "gpu/command_buffer/client/gles2_implementation_unittest_autogen.h"
3292 3292
3293 } // namespace gles2 3293 } // namespace gles2
3294 } // namespace gpu 3294 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/fenced_allocator_test.cc ('k') | gpu/command_buffer/client/mapped_memory_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698