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

Unified Diff: tests/MipMapTest.cpp

Issue 1750303002: Adding anisotropic mipmap levels to SkMipMap. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Changing width >>= 1; width = SkTMax(1, width); to width = SkTMax(1, width >> 1); Created 4 years, 10 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 | « src/core/SkMipMap.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/MipMapTest.cpp
diff --git a/tests/MipMapTest.cpp b/tests/MipMapTest.cpp
index 027c04635306e0b399d9c3a08a6dd831fe4d13d1..4d4574698eac2bc85b6b2838e36f9d63cb86d5c6 100644
--- a/tests/MipMapTest.cpp
+++ b/tests/MipMapTest.cpp
@@ -125,12 +125,12 @@ DEF_TEST(MipMap_ComputeLevelCount, reporter) {
{100, 0, 0},
{0, 0, 0},
// 1
- {1, 100, 0},
- {100, 1, 0},
+ {1, 100, 6},
+ {100, 1, 6},
{1, 1, 0},
// 2
- {2, 100, 1},
- {100, 2, 1},
+ {2, 100, 6},
+ {100, 2, 6},
{2, 2, 1},
// Test a handful of boundaries such as 63x63 and 64x64
@@ -142,9 +142,9 @@ DEF_TEST(MipMap_ComputeLevelCount, reporter) {
{256, 256, 8},
// Test different dimensions, such as 256x64
- {64, 129, 6},
- {255, 32, 5},
- {500, 1000, 8}
+ {64, 129, 7},
+ {255, 32, 7},
+ {500, 1000, 9}
};
for (auto& currentTest : tests) {
« no previous file with comments | « src/core/SkMipMap.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698