OLD | NEW |
1 | |
2 /* | 1 /* |
3 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
4 * | 3 * |
5 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
7 */ | 6 */ |
8 | 7 |
9 | 8 |
10 #include "SkBitSet.h" | 9 #include "SkBitSet.h" |
11 | 10 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 if (fBitCount != source.fBitCount) { | 58 if (fBitCount != source.fBitCount) { |
60 return false; | 59 return false; |
61 } | 60 } |
62 uint32_t* targetBitmap = this->internalGet(0); | 61 uint32_t* targetBitmap = this->internalGet(0); |
63 uint32_t* sourceBitmap = source.internalGet(0); | 62 uint32_t* sourceBitmap = source.internalGet(0); |
64 for (size_t i = 0; i < fDwordCount; ++i) { | 63 for (size_t i = 0; i < fDwordCount; ++i) { |
65 targetBitmap[i] |= sourceBitmap[i]; | 64 targetBitmap[i] |= sourceBitmap[i]; |
66 } | 65 } |
67 return true; | 66 return true; |
68 } | 67 } |
OLD | NEW |