| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 #if 0 // experimental | 10 #if 0 // experimental |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 ctable = fSource.getColorTable()->lockColors(); | 29 ctable = fSource.getColorTable()->lockColors(); |
| 30 | 30 |
| 31 while (--height >= 0) | 31 while (--height >= 0) |
| 32 { | 32 { |
| 33 proc(dst, src, width, ctable); | 33 proc(dst, src, width, ctable); |
| 34 dst += dstRB; | 34 dst += dstRB; |
| 35 src += srcRB; | 35 src += srcRB; |
| 36 } | 36 } |
| 37 | 37 |
| 38 if fSource.getColorTable()) | 38 if fSource.getColorTable()) |
| 39 fSource.getColorTable()->unlockColors(); | 39 fSource.getColorTable()->unlockColors(false); |
| 40 } | 40 } |
| 41 | 41 |
| 42 private: | 42 private: |
| 43 Proc fProc; | 43 Proc fProc; |
| 44 uint8_t fSrcShift, fDstShift; | 44 uint8_t fSrcShift, fDstShift; |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 #endif | 47 #endif |
| OLD | NEW |