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

Unified Diff: gpu/command_buffer/service/command_buffer_service_unittest.cc

Issue 2304813002: command buffers: correctly handle Flush(num_entries) (Closed)
Patch Set: Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/service/command_buffer_service.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/command_buffer_service_unittest.cc
diff --git a/gpu/command_buffer/service/command_buffer_service_unittest.cc b/gpu/command_buffer/service/command_buffer_service_unittest.cc
index f089f0230de65625a47afd9fe7fffcd7f821eff3..d2d8b3c2e6e6c0e6d347ad96f03454858b33dfcb 100644
--- a/gpu/command_buffer/service/command_buffer_service_unittest.cc
+++ b/gpu/command_buffer/service/command_buffer_service_unittest.cc
@@ -45,7 +45,8 @@ class CommandBufferServiceTest : public testing::Test {
int32_t GetError() { return command_buffer_->GetLastState().error; }
- bool Initialize(size_t size) {
+ bool Initialize(size_t entries) {
+ size_t size = entries * sizeof(CommandBufferEntry);
int32_t id;
command_buffer_->CreateTransferBuffer(size, &id);
EXPECT_GT(id, 0);
« no previous file with comments | « gpu/command_buffer/service/command_buffer_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698