aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-08-20 19:22:38 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-08-20 19:22:38 +0000
commit0342a85091fd430c90a142d155dc9642aa729d9e (patch)
treead84edb6b6194b35ca77783c7147c2e62a56542f /tests
parentb7961193a3ecca44cf2650d9e446ebaa10b1583d (diff)
Remove _UPM_ GrPixelConfigs
Review URL: http://codereview.appspot.com/6460113/ git-svn-id: http://skia.googlecode.com/svn/trunk@5196 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests')
-rw-r--r--tests/PremulAlphaRoundTripTest.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/PremulAlphaRoundTripTest.cpp b/tests/PremulAlphaRoundTripTest.cpp
index a22ff5ae13..f2f1613d95 100644
--- a/tests/PremulAlphaRoundTripTest.cpp
+++ b/tests/PremulAlphaRoundTripTest.cpp
@@ -95,10 +95,11 @@ void PremulAlphaRoundTripTest(skiatest::Reporter* reporter,
reinterpret_cast<uint32_t*>(readBmp1.getPixels());
uint32_t* pixels2 =
reinterpret_cast<uint32_t*>(readBmp2.getPixels());
- for (int y = 0; y < 256; ++y) {
- for (int x = 0; x < 256; ++x) {
+ bool success = true;
+ for (int y = 0; y < 256 && success; ++y) {
+ for (int x = 0; x < 256 && success; ++x) {
int i = y * 256 + x;
- REPORTER_ASSERT(reporter, pixels1[i] == pixels2[i]);
+ REPORTER_ASSERT(reporter, success = pixels1[i] == pixels2[i]);
}
}
}