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

Unified Diff: gm/xfermodes2.cpp

Issue 1041913002: Fix variable names in xfermodes2 gm test (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/xfermodes2.cpp
diff --git a/gm/xfermodes2.cpp b/gm/xfermodes2.cpp
index 98e6f3a85c3c1b36a71f011ee1063faaaf9925e3..d19b781174cca9695210eaaf4d95a4a2adcb9d62 100644
--- a/gm/xfermodes2.cpp
+++ b/gm/xfermodes2.cpp
@@ -104,9 +104,9 @@ private:
SkShader::kRepeat_TileMode,
&lm));
- SkBitmap dstBmp;
- dstBmp.allocN32Pixels(kSize, kSize);
- SkPMColor* pixels = reinterpret_cast<SkPMColor*>(dstBmp.getPixels());
+ SkBitmap srcBmp;
+ srcBmp.allocN32Pixels(kSize, kSize);
+ SkPMColor* pixels = reinterpret_cast<SkPMColor*>(srcBmp.getPixels());
for (int y = 0; y < kSize; ++y) {
int c = y * (1 << kShift);
@@ -115,12 +115,12 @@ private:
pixels[kSize * y + x] = rowColor;
}
}
- fSrc.reset(SkShader::CreateBitmapShader(dstBmp,
+ fSrc.reset(SkShader::CreateBitmapShader(srcBmp,
SkShader::kClamp_TileMode,
SkShader::kClamp_TileMode));
- SkBitmap srcBmp;
- srcBmp.allocN32Pixels(kSize, kSize);
- pixels = reinterpret_cast<SkPMColor*>(srcBmp.getPixels());
+ SkBitmap dstBmp;
+ dstBmp.allocN32Pixels(kSize, kSize);
+ pixels = reinterpret_cast<SkPMColor*>(dstBmp.getPixels());
for (int x = 0; x < kSize; ++x) {
int c = x * (1 << kShift);
@@ -129,7 +129,7 @@ private:
pixels[kSize * y + x] = colColor;
}
}
- fDst.reset(SkShader::CreateBitmapShader(srcBmp,
+ fDst.reset(SkShader::CreateBitmapShader(dstBmp,
SkShader::kClamp_TileMode,
SkShader::kClamp_TileMode));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698