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

Unified Diff: core/cross/command_buffer/buffer_cb.cc

Issue 234002: More work in Command Buffers... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: Created 11 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 | « core/cross/command_buffer/buffer_cb.h ('k') | core/cross/command_buffer/effect_cb.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/cross/command_buffer/buffer_cb.cc
===================================================================
--- core/cross/command_buffer/buffer_cb.cc (revision 26886)
+++ core/cross/command_buffer/buffer_cb.cc (working copy)
@@ -72,7 +72,8 @@
if (size_in_bytes > 0) {
resource_id_ = renderer_->vertex_buffer_ids().AllocateID();
CommandBufferHelper *helper = renderer_->helper();
- helper->CreateVertexBuffer(resource_id_, size_in_bytes, 0);
+ helper->CreateVertexBuffer(resource_id_, size_in_bytes,
+ command_buffer::vertex_buffer::kNone);
has_data_ = false;
}
return true;
@@ -149,7 +150,7 @@
CommandBufferHelper *helper = renderer_->helper();
helper->CreateIndexBuffer(
resource_id_, size_in_bytes,
- command_buffer::index_buffer::INDEX_32BIT);
+ command_buffer::index_buffer::kIndex32Bit);
has_data_ = false;
}
return true;
« no previous file with comments | « core/cross/command_buffer/buffer_cb.h ('k') | core/cross/command_buffer/effect_cb.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698