/** Simple blitting of opaque rectangles less than 31 pixels wide:
inlines and merges sections of Color32_SSE2 and sk_memset32_SSE2.
*/
-void BlitRect32_OpaqueNarrow_SSE2(SkPMColor* SK_RESTRICT destination,
+static void BlitRect32_OpaqueNarrow_SSE2(SkPMColor* SK_RESTRICT destination,
int width, int height,
size_t rowBytes, uint32_t color) {
SkASSERT(255 == SkGetPackedA32(color));
A 31 pixel rectangle is guaranteed to have at least one
16-pixel aligned span that can take advantage of mm_store.
*/
-void BlitRect32_OpaqueWide_SSE2(SkPMColor* SK_RESTRICT destination,
+static void BlitRect32_OpaqueWide_SSE2(SkPMColor* SK_RESTRICT destination,
int width, int height,
size_t rowBytes, uint32_t color) {
SkASSERT(255 == SkGetPackedA32(color));
return;
}
unsigned colorA = SkGetPackedA32(color);
- //if (255 == colorA) {
- //if (width < 31) {
- //BlitRect32_OpaqueNarrow_SSE2(destination, width, height,
- //rowBytes, color);
- //} else {
- //BlitRect32_OpaqueWide_SSE2(destination, width, height,
- //rowBytes, color);
- //}
- //} else {
+ if (false && 255 == colorA) { // disabled but compilable to suppress warning
+ if (width < 31) {
+ BlitRect32_OpaqueNarrow_SSE2(destination, width, height,
+ rowBytes, color);
+ } else {
+ BlitRect32_OpaqueWide_SSE2(destination, width, height,
+ rowBytes, color);
+ }
+ } else {
SkBlitRow::ColorRect32(destination, width, height, rowBytes, color);
- //}
+ }
}