| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google, Inc. All Rights Reserved. | 2 * Copyright (C) 2012 Google, Inc. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 #endif | 156 #endif |
| 157 { | 157 { |
| 158 } | 158 } |
| 159 | 159 |
| 160 #if ENABLE(ASSERT) | 160 #if ENABLE(ASSERT) |
| 161 private: | 161 private: |
| 162 ThreadIdentifier m_threadId; | 162 ThreadIdentifier m_threadId; |
| 163 #endif | 163 #endif |
| 164 }; | 164 }; |
| 165 | 165 |
| 166 // TODO(sof): replace all HeapSupplement<T> uses with Supplement<T>. | |
| 167 #define HeapSupplement Supplement | |
| 168 | |
| 169 template<typename T> | 166 template<typename T> |
| 170 struct ThreadingTrait<Supplement<T>> { | 167 struct ThreadingTrait<Supplement<T>> { |
| 171 static const ThreadAffinity Affinity = ThreadingTrait<T>::Affinity; | 168 static const ThreadAffinity Affinity = ThreadingTrait<T>::Affinity; |
| 172 }; | 169 }; |
| 173 | 170 |
| 174 template<typename T> | 171 template<typename T> |
| 175 struct ThreadingTrait<Supplementable<T>> { | 172 struct ThreadingTrait<Supplementable<T>> { |
| 176 static const ThreadAffinity Affinity = ThreadingTrait<T>::Affinity; | 173 static const ThreadAffinity Affinity = ThreadingTrait<T>::Affinity; |
| 177 }; | 174 }; |
| 178 | 175 |
| 179 } // namespace blink | 176 } // namespace blink |
| 180 | 177 |
| 181 #endif // Supplementable_h | 178 #endif // Supplementable_h |
| OLD | NEW |