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

Unified Diff: bench/PMFloatBench.cpp

Issue 1055123002: New names for SkPMFloat methods. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: one more 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 | src/core/SkPMFloat.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/PMFloatBench.cpp
diff --git a/bench/PMFloatBench.cpp b/bench/PMFloatBench.cpp
index 09819e9962f6b55edeb260d9007f0cde4810fe05..14ccb33d0a805c74bff9cfc01b7c4ff8c845df06 100644
--- a/bench/PMFloatBench.cpp
+++ b/bench/PMFloatBench.cpp
@@ -69,19 +69,19 @@ struct PMFloatGetSetBench : public Benchmark {
SkPMColor back[4];
switch (kClamp << 1 | kWide) {
case 0: {
- back[0] = fa.get();
- back[1] = fb.get();
- back[2] = fc.get();
- back[3] = fd.get();
+ back[0] = fa.round();
+ back[1] = fb.round();
+ back[2] = fc.round();
+ back[3] = fd.round();
} break;
- case 1: SkPMFloat::To4PMColors(fa, fb, fc, fd, back); break;
+ case 1: SkPMFloat::RoundTo4PMColors(fa, fb, fc, fd, back); break;
case 2: {
- back[0] = fa.clamped();
- back[1] = fb.clamped();
- back[2] = fc.clamped();
- back[3] = fd.clamped();
+ back[0] = fa.roundClamp();
+ back[1] = fb.roundClamp();
+ back[2] = fc.roundClamp();
+ back[3] = fd.roundClamp();
} break;
- case 3: SkPMFloat::ClampTo4PMColors(fa, fb, fc, fd, back); break;
+ case 3: SkPMFloat::RoundClampTo4PMColors(fa, fb, fc, fd, back); break;
}
for (int i = 0; i < 4; i++) {
junk ^= back[i];
« no previous file with comments | « no previous file | src/core/SkPMFloat.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698