| OLD | NEW |
| 1 | |
| 2 /* | 1 /* |
| 3 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
| 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 "SkDeque.h" | 9 #include "SkDeque.h" |
| 11 | 10 |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 fPos = fCurBlock ? fCurBlock->fBegin : nullptr; | 298 fPos = fCurBlock ? fCurBlock->fBegin : nullptr; |
| 300 } else { | 299 } else { |
| 301 // initialize the iterator to start at the back | 300 // initialize the iterator to start at the back |
| 302 fCurBlock = d.fBackBlock; | 301 fCurBlock = d.fBackBlock; |
| 303 while (fCurBlock && nullptr == fCurBlock->fEnd) { | 302 while (fCurBlock && nullptr == fCurBlock->fEnd) { |
| 304 fCurBlock = fCurBlock->fPrev; | 303 fCurBlock = fCurBlock->fPrev; |
| 305 } | 304 } |
| 306 fPos = fCurBlock ? fCurBlock->fEnd - fElemSize : nullptr; | 305 fPos = fCurBlock ? fCurBlock->fEnd - fElemSize : nullptr; |
| 307 } | 306 } |
| 308 } | 307 } |
| OLD | NEW |