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

Side by Side Diff: command_buffer/client/cross/effect_helper.cc

Issue 332036: move all O3D specific command buffer stuff to command_buffer::o3d... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: Created 11 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright 2009, Google Inc. 2 * Copyright 2009, Google Inc.
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 14 matching lines...) Expand all
25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 */ 30 */
31 31
32 32
33 // This file implements the EffectHelper class. 33 // This file implements the EffectHelper class.
34 34
35 #include "command_buffer/common/cross/cmd_buffer_format.h" 35 #include "command_buffer/common/cross/o3d_cmd_format.h"
36 #include "command_buffer/client/cross/cmd_buffer_helper.h" 36 #include "command_buffer/client/cross/cmd_buffer_helper.h"
37 #include "command_buffer/client/cross/effect_helper.h" 37 #include "command_buffer/client/cross/effect_helper.h"
38 #include "command_buffer/client/cross/fenced_allocator.h" 38 #include "command_buffer/client/cross/fenced_allocator.h"
39 #include "command_buffer/client/cross/id_allocator.h" 39 #include "command_buffer/client/cross/id_allocator.h"
40 40
41 // TODO: write a unit test. 41 // TODO: write a unit test.
42 42
43 namespace o3d { 43 namespace o3d {
44 namespace command_buffer { 44 namespace command_buffer {
45 45
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 Desc *raw_desc = raw_descs + j; 243 Desc *raw_desc = raw_descs + j;
244 desc->semantic = static_cast<vertex_struct::Semantic>(raw_desc->semantic); 244 desc->semantic = static_cast<vertex_struct::Semantic>(raw_desc->semantic);
245 desc->semantic_index = raw_desc->semantic_index; 245 desc->semantic_index = raw_desc->semantic_index;
246 } 246 }
247 } 247 }
248 shm_allocator_->Free(raw_descs); 248 shm_allocator_->Free(raw_descs);
249 return true; 249 return true;
250 } 250 }
251 } // namespace command_buffer 251 } // namespace command_buffer
252 } // namespace o3d 252 } // namespace o3d
OLDNEW
« no previous file with comments | « command_buffer/client/cross/cmd_buffer_helper_test.cc ('k') | command_buffer/client/cross/fenced_allocator_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698