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

Unified Diff: bench/DrawLatticeBench.cpp

Issue 2255963002: Batched implementation of drawLattice() for GPU (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Speculative reland Created 4 years, 4 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/gpu/GrDrawContext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/DrawLatticeBench.cpp
diff --git a/bench/DrawLatticeBench.cpp b/bench/DrawLatticeBench.cpp
index 4c03ca1dfa020fdf0038800b30c964222b3bf025..9c4d31a099d1fffe759da7450fac8f89b118c028 100644
--- a/bench/DrawLatticeBench.cpp
+++ b/bench/DrawLatticeBench.cpp
@@ -29,6 +29,10 @@ public:
return fName.c_str();
}
+ SkIPoint onGetSize() override {
+ return SkIPoint::Make(1000, 1000);
+ }
+
bool isSuitableFor(Backend backend) override {
return kRaster_Backend == backend || kGPU_Backend == backend;
}
@@ -54,6 +58,17 @@ private:
typedef Benchmark INHERITED;
};
-static int gDivs[2] = { 250, 750, };
-DEF_BENCH(return new DrawLatticeBench(gDivs, 2, gDivs, 2, SkISize::Make(1000, 1000),
- SkRect::MakeWH(4000.0f, 4000.0f), "StandardNine");)
+static int gDivs9[2] = { 25, 75, };
+DEF_BENCH(return new DrawLatticeBench(gDivs9, 2, gDivs9, 2, SkISize::Make(100, 100),
+ SkRect::MakeWH(250.0f, 250.0f), "Src100_Dst250_Rects9");)
+DEF_BENCH(return new DrawLatticeBench(gDivs9, 2, gDivs9, 2, SkISize::Make(100, 100),
+ SkRect::MakeWH(500.0f, 500.0f), "Src100_Dst500_Rects9");)
+DEF_BENCH(return new DrawLatticeBench(gDivs9, 2, gDivs9, 2, SkISize::Make(100, 100),
+ SkRect::MakeWH(1000.0f, 1000.0f), "Src100_Dst1000_Rects9");)
+static int gDivs15[4] = { 15, 45, 55, 85, };
+DEF_BENCH(return new DrawLatticeBench(gDivs15, 4, gDivs15, 4, SkISize::Make(100, 100),
+ SkRect::MakeWH(250.0f, 250.0f), "Src100_Dst250_Rects15");)
+DEF_BENCH(return new DrawLatticeBench(gDivs15, 4, gDivs15, 4, SkISize::Make(100, 100),
+ SkRect::MakeWH(500.0f, 500.0f), "Src100_Dst500_Rects15");)
+DEF_BENCH(return new DrawLatticeBench(gDivs15, 4, gDivs15, 4, SkISize::Make(100, 100),
+ SkRect::MakeWH(1000.0f, 1000.0f), "Src100_Dst1000_Rects15");)
« no previous file with comments | « no previous file | include/gpu/GrDrawContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698