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

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

Issue 1025523005: gl_tests: Use zero size gl surface for offscreen rendering (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make gpu_unittests pass as well Created 5 years, 9 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
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 the Command Buffer Helper. 5 // Tests for the Command Buffer Helper.
6 6
7 #include <list> 7 #include <list>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 252
253 error::Error GetError() { 253 error::Error GetError() {
254 return command_buffer_->GetLastState().error; 254 return command_buffer_->GetLastState().error;
255 } 255 }
256 256
257 CommandBufferOffset get_helper_put() { return helper_->put_; } 257 CommandBufferOffset get_helper_put() { return helper_->put_; }
258 258
259 #if defined(OS_MACOSX) 259 #if defined(OS_MACOSX)
260 base::mac::ScopedNSAutoreleasePool autorelease_pool_; 260 base::mac::ScopedNSAutoreleasePool autorelease_pool_;
261 #endif 261 #endif
262 #if !defined(USE_OZONE)
262 base::MessageLoop message_loop_; 263 base::MessageLoop message_loop_;
264 #endif
piman 2015/03/24 00:36:30 Could this (and the autorelease_pool_) be moved to
vignatti (out of this project) 2015/03/24 14:01:48 Done.
263 scoped_ptr<AsyncAPIMock> api_mock_; 265 scoped_ptr<AsyncAPIMock> api_mock_;
264 scoped_ptr<TransferBufferManagerInterface> transfer_buffer_manager_; 266 scoped_ptr<TransferBufferManagerInterface> transfer_buffer_manager_;
265 scoped_ptr<CommandBufferServiceLocked> command_buffer_; 267 scoped_ptr<CommandBufferServiceLocked> command_buffer_;
266 scoped_ptr<GpuScheduler> gpu_scheduler_; 268 scoped_ptr<GpuScheduler> gpu_scheduler_;
267 scoped_ptr<CommandBufferHelper> helper_; 269 scoped_ptr<CommandBufferHelper> helper_;
268 std::list<linked_ptr<std::vector<CommandBufferEntry> > > test_command_args_; 270 std::list<linked_ptr<std::vector<CommandBufferEntry> > > test_command_args_;
269 unsigned int test_command_next_id_; 271 unsigned int test_command_next_id_;
270 Sequence sequence_; 272 Sequence sequence_;
271 }; 273 };
272 274
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 helper_->OrderingBarrier(); 765 helper_->OrderingBarrier();
764 flush_count2 = command_buffer_->FlushCount(); 766 flush_count2 = command_buffer_->FlushCount();
765 helper_->OrderingBarrier(); 767 helper_->OrderingBarrier();
766 flush_count3 = command_buffer_->FlushCount(); 768 flush_count3 = command_buffer_->FlushCount();
767 769
768 EXPECT_EQ(flush_count2, flush_count1 + 1); 770 EXPECT_EQ(flush_count2, flush_count1 + 1);
769 EXPECT_EQ(flush_count3, flush_count2 + 1); 771 EXPECT_EQ(flush_count3, flush_count2 + 1);
770 } 772 }
771 773
772 } // namespace gpu 774 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698