| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |