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

Unified Diff: bench/Matrix44Bench.cpp

Issue 1173673003: A bunch of little SkMScalar-as-float build fixes. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 5 years, 6 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 | include/core/SkFloatingPoint.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/Matrix44Bench.cpp
diff --git a/bench/Matrix44Bench.cpp b/bench/Matrix44Bench.cpp
index a990763b62815c2c6fa0eb30533b69e1f795adbd..98025f154460ce03a8740ad904c8116e9e9e24f8 100644
--- a/bench/Matrix44Bench.cpp
+++ b/bench/Matrix44Bench.cpp
@@ -116,22 +116,22 @@ public:
, fM0(SkMatrix44::kUninitialized_Constructor)
, fM1(SkMatrix44::kUninitialized_Constructor)
{
- fM0.set(0, 0, -1.1);
- fM0.set(0, 1, 2.1);
- fM0.set(0, 2, -3.1);
- fM0.set(0, 3, 4.1);
- fM0.set(1, 0, 5.1);
- fM0.set(1, 1, -6.1);
- fM0.set(1, 2, 7.1);
- fM0.set(1, 3, 8.1);
- fM0.set(2, 0, -9.1);
- fM0.set(2, 1, 10.1);
- fM0.set(2, 2, 11.1);
- fM0.set(2, 3, -12.1);
- fM0.set(3, 0, -13.1);
- fM0.set(3, 1, 14.1);
- fM0.set(3, 2, -15.1);
- fM0.set(3, 3, 16.1);
+ fM0.setDouble(0, 0, -1.1);
+ fM0.setDouble(0, 1, 2.1);
+ fM0.setDouble(0, 2, -3.1);
+ fM0.setDouble(0, 3, 4.1);
+ fM0.setDouble(1, 0, 5.1);
+ fM0.setDouble(1, 1, -6.1);
+ fM0.setDouble(1, 2, 7.1);
+ fM0.setDouble(1, 3, 8.1);
+ fM0.setDouble(2, 0, -9.1);
+ fM0.setDouble(2, 1, 10.1);
+ fM0.setDouble(2, 2, 11.1);
+ fM0.setDouble(2, 3, -12.1);
+ fM0.setDouble(3, 0, -13.1);
+ fM0.setDouble(3, 1, 14.1);
+ fM0.setDouble(3, 2, -15.1);
+ fM0.setDouble(3, 3, 16.1);
}
protected:
virtual void performTest() {
@@ -151,18 +151,18 @@ public:
, fM0(SkMatrix44::kIdentity_Constructor)
, fM1(SkMatrix44::kUninitialized_Constructor)
{
- fM0.set(0, 0, -1.1);
- fM0.set(0, 1, 2.1);
- fM0.set(0, 2, -3.1);
- fM0.set(0, 3, 4.1);
- fM0.set(1, 0, 5.1);
- fM0.set(1, 1, -6.1);
- fM0.set(1, 2, 7.1);
- fM0.set(1, 3, 8.1);
- fM0.set(2, 0, -9.1);
- fM0.set(2, 1, 10.1);
- fM0.set(2, 2, 11.1);
- fM0.set(2, 3, -12.1);
+ fM0.setDouble(0, 0, -1.1);
+ fM0.setDouble(0, 1, 2.1);
+ fM0.setDouble(0, 2, -3.1);
+ fM0.setDouble(0, 3, 4.1);
+ fM0.setDouble(1, 0, 5.1);
+ fM0.setDouble(1, 1, -6.1);
+ fM0.setDouble(1, 2, 7.1);
+ fM0.setDouble(1, 3, 8.1);
+ fM0.setDouble(2, 0, -9.1);
+ fM0.setDouble(2, 1, 10.1);
+ fM0.setDouble(2, 2, 11.1);
+ fM0.setDouble(2, 3, -12.1);
// bottom row (perspective component) remains (0, 0, 0, 1).
}
protected:
@@ -183,14 +183,14 @@ public:
, fM0(SkMatrix44::kIdentity_Constructor)
, fM1(SkMatrix44::kUninitialized_Constructor)
{
- fM0.set(0, 0, -1.1);
- fM0.set(0, 3, 4.1);
+ fM0.setDouble(0, 0, -1.1);
+ fM0.setDouble(0, 3, 4.1);
- fM0.set(1, 1, -6.1);
- fM0.set(1, 3, 8.1);
+ fM0.setDouble(1, 1, -6.1);
+ fM0.setDouble(1, 3, 8.1);
- fM0.set(2, 2, 11.1);
- fM0.set(2, 3, -12.1);
+ fM0.setDouble(2, 2, 11.1);
+ fM0.setDouble(2, 3, -12.1);
}
protected:
virtual void performTest() {
@@ -210,9 +210,9 @@ public:
, fM0(SkMatrix44::kIdentity_Constructor)
, fM1(SkMatrix44::kUninitialized_Constructor)
{
- fM0.set(0, 3, 4.1);
- fM0.set(1, 3, 8.1);
- fM0.set(2, 3, -12.1);
+ fM0.setDouble(0, 3, 4.1);
+ fM0.setDouble(1, 3, 8.1);
+ fM0.setDouble(2, 3, -12.1);
}
protected:
virtual void performTest() {
« no previous file with comments | « no previous file | include/core/SkFloatingPoint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698