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

Unified Diff: skia/ext/convolver_unittest.cc

Issue 10939010: Cleanup: avoid foo ? true : false, part 1. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/video/capture/win/video_capture_device_win.cc ('k') | ui/base/win/ime_input.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/convolver_unittest.cc
===================================================================
--- skia/ext/convolver_unittest.cc (revision 159076)
+++ skia/ext/convolver_unittest.cc (working copy)
@@ -275,7 +275,7 @@
resize_start = base::TimeTicks::Now();
BGRAConvolve2D(static_cast<const uint8*>(source.getPixels()),
static_cast<int>(source.rowBytes()),
- alpha ? true : false, x_filter, y_filter,
+ (alpha != 0), x_filter, y_filter,
static_cast<int>(result_c.rowBytes()), r1, false);
delta_c = base::TimeTicks::Now() - resize_start;
@@ -283,7 +283,7 @@
// Convolve using SSE2 code
BGRAConvolve2D(static_cast<const uint8*>(source.getPixels()),
static_cast<int>(source.rowBytes()),
- alpha ? true : false, x_filter, y_filter,
+ (alpha != 0), x_filter, y_filter,
static_cast<int>(result_sse.rowBytes()), r2, true);
delta_sse = base::TimeTicks::Now() - resize_start;
« no previous file with comments | « media/video/capture/win/video_capture_device_win.cc ('k') | ui/base/win/ime_input.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698