summaryrefslogtreecommitdiffstats
path: root/skia
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-27 22:32:21 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-27 22:32:21 +0000
commita1f8c1673d5a7873769b66356c0d2f2308213dda (patch)
treef4e871590fa4f851db3d480d5bfe9cc9f21fe467 /skia
parentff19af783cc8f2bb6adb7adee5cb6a23f4e0115f (diff)
downloadchromium_src-a1f8c1673d5a7873769b66356c0d2f2308213dda.zip
chromium_src-a1f8c1673d5a7873769b66356c0d2f2308213dda.tar.gz
chromium_src-a1f8c1673d5a7873769b66356c0d2f2308213dda.tar.bz2
Cleanup: avoid foo ? true : false, part 1.
Review URL: https://chromiumcodereview.appspot.com/10939010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159137 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia')
-rw-r--r--skia/ext/convolver_unittest.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/skia/ext/convolver_unittest.cc b/skia/ext/convolver_unittest.cc
index 038cb04..f61b685 100644
--- a/skia/ext/convolver_unittest.cc
+++ b/skia/ext/convolver_unittest.cc
@@ -275,7 +275,7 @@ TEST(Convolver, SIMDVerification) {
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 @@ TEST(Convolver, SIMDVerification) {
// 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;