| 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 | 136 |
| 137 virtual void CopyDataFromParam(Param* source_param) { | 137 virtual void CopyDataFromParam(Param* source_param) { |
| 138 // do nothing. | 138 // do nothing. |
| 139 } | 139 } |
| 140 | 140 |
| 141 virtual void OnAfterBindInput() { | 141 virtual void OnAfterBindInput() { |
| 142 ++master_->number_binds_; | 142 ++master_->number_binds_; |
| 143 } | 143 } |
| 144 | 144 |
| 145 virtual void OnAfterUnbindInput(Param* old_source) { | 145 virtual void OnAfterUnbindInput(Param* old_source) { |
| 146 master_->number_binds_; | 146 --master_->number_binds_; |
| 147 } | 147 } |
| 148 | 148 |
| 149 private: | 149 private: |
| 150 StreamBank* master_; | 150 StreamBank* master_; |
| 151 DISALLOW_COPY_AND_ASSIGN(SlaveParamVertexBufferStream); | 151 DISALLOW_COPY_AND_ASSIGN(SlaveParamVertexBufferStream); |
| 152 }; | 152 }; |
| 153 | 153 |
| 154 // Called after the a stream as been added or removed. | 154 // Called after the a stream as been added or removed. |
| 155 // Overridden in derived classes that need to know when a stream has been | 155 // Overridden in derived classes that need to know when a stream has been |
| 156 // added or removed. | 156 // added or removed. |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 private: | 188 private: |
| 189 friend class IClassManager; | 189 friend class IClassManager; |
| 190 static ObjectBase::Ref Create(ServiceLocator* service_locator); | 190 static ObjectBase::Ref Create(ServiceLocator* service_locator); |
| 191 | 191 |
| 192 O3D_DECL_CLASS(ParamStreamBank, RefParamBase) | 192 O3D_DECL_CLASS(ParamStreamBank, RefParamBase) |
| 193 }; | 193 }; |
| 194 | 194 |
| 195 } // namespace o3d | 195 } // namespace o3d |
| 196 | 196 |
| 197 #endif // O3D_CORE_CROSS_STREAM_BANK_H_ | 197 #endif // O3D_CORE_CROSS_STREAM_BANK_H_ |
| OLD | NEW |