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 21 matching lines...) Expand all Loading... |
32 | 32 |
33 // This file contains the implementation of the ParamCacheCB class. | 33 // This file contains the implementation of the ParamCacheCB class. |
34 | 34 |
35 #include "core/cross/precompile.h" | 35 #include "core/cross/precompile.h" |
36 #include "core/cross/draw_element.h" | 36 #include "core/cross/draw_element.h" |
37 #include "core/cross/element.h" | 37 #include "core/cross/element.h" |
38 #include "core/cross/semantic_manager.h" | 38 #include "core/cross/semantic_manager.h" |
39 #include "core/cross/command_buffer/effect_cb.h" | 39 #include "core/cross/command_buffer/effect_cb.h" |
40 #include "core/cross/command_buffer/param_cache_cb.h" | 40 #include "core/cross/command_buffer/param_cache_cb.h" |
41 #include "core/cross/command_buffer/sampler_cb.h" | 41 #include "core/cross/command_buffer/sampler_cb.h" |
42 #include "command_buffer/common/cross/cmd_buffer_format.h" | 42 #include "command_buffer/common/cross/o3d_cmd_format.h" |
43 #include "command_buffer/client/cross/o3d_cmd_helper.h" | 43 #include "command_buffer/client/cross/o3d_cmd_helper.h" |
44 | 44 |
45 namespace o3d { | 45 namespace o3d { |
46 | 46 |
47 using command_buffer::CommandBufferEntry; | 47 using command_buffer::CommandBufferEntry; |
48 using command_buffer::O3DCmdHelper; | 48 using command_buffer::O3DCmdHelper; |
49 using command_buffer::EffectHelper; | 49 using command_buffer::EffectHelper; |
50 using command_buffer::ResourceId; | 50 using command_buffer::ResourceId; |
51 namespace effect_param = command_buffer::effect_param; | 51 namespace effect_param = command_buffer::effect_param; |
52 | 52 |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 handlers_.clear(); | 277 handlers_.clear(); |
278 } | 278 } |
279 | 279 |
280 void ParamCacheCB::RunHandlers(O3DCmdHelper* helper) { | 280 void ParamCacheCB::RunHandlers(O3DCmdHelper* helper) { |
281 for (unsigned int i = 0; i < handlers_.size(); ++i) { | 281 for (unsigned int i = 0; i < handlers_.size(); ++i) { |
282 handlers_[i]->SetValue(helper); | 282 handlers_[i]->SetValue(helper); |
283 } | 283 } |
284 } | 284 } |
285 | 285 |
286 } // namespace o3d | 286 } // namespace o3d |
OLD | NEW |