| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
| 3 * | 3 * |
| 4 * 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 |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "SkBlitRect_opts_SSE2.h" | 8 #include "SkBlitRect_opts_SSE2.h" |
| 9 #include "SkBlitRow.h" | 9 #include "SkBlitRow.h" |
| 10 #include "SkColorPriv.h" | 10 #include "SkColorPriv.h" |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 } | 111 } |
| 112 } | 112 } |
| 113 | 113 |
| 114 void ColorRect32_SSE2(SkPMColor* destination, | 114 void ColorRect32_SSE2(SkPMColor* destination, |
| 115 int width, int height, | 115 int width, int height, |
| 116 size_t rowBytes, uint32_t color) { | 116 size_t rowBytes, uint32_t color) { |
| 117 if (0 == height || 0 == width || 0 == color) { | 117 if (0 == height || 0 == width || 0 == color) { |
| 118 return; | 118 return; |
| 119 } | 119 } |
| 120 unsigned colorA = SkGetPackedA32(color); | 120 unsigned colorA = SkGetPackedA32(color); |
| 121 if (false && 255 == colorA) { // disabled but compilable to suppress warning | 121 colorA = 0; // skip below if () for now...(has been disabled since this was
added in r3423). |
| 122 if (255 == colorA) { |
| 122 if (width < 31) { | 123 if (width < 31) { |
| 123 BlitRect32_OpaqueNarrow_SSE2(destination, width, height, | 124 BlitRect32_OpaqueNarrow_SSE2(destination, width, height, |
| 124 rowBytes, color); | 125 rowBytes, color); |
| 125 } else { | 126 } else { |
| 126 BlitRect32_OpaqueWide_SSE2(destination, width, height, | 127 BlitRect32_OpaqueWide_SSE2(destination, width, height, |
| 127 rowBytes, color); | 128 rowBytes, color); |
| 128 } | 129 } |
| 129 } else { | 130 } else { |
| 130 SkBlitRow::ColorRect32(destination, width, height, rowBytes, color); | 131 SkBlitRow::ColorRect32(destination, width, height, rowBytes, color); |
| 131 } | 132 } |
| 132 } | 133 } |
| OLD | NEW |