Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/opts/SkBlitRect_opts_SSE2.cpp

Issue 12536008: Enable init'ed but unused var warning on windows for closer parity with mac/linux warnings. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/device/xps/SkXPSDevice.cpp ('k') | src/ports/SkFontHost_win.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « src/device/xps/SkXPSDevice.cpp ('k') | src/ports/SkFontHost_win.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698