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

Unified Diff: bench/PatchBench.cpp

Issue 470543004: SkPatchGrid bench (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Moved setup to onPreDraw Created 6 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 | bench/PatchGridBench.cpp » ('j') | bench/PatchGridBench.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/PatchBench.cpp
diff --git a/bench/PatchBench.cpp b/bench/PatchBench.cpp
index 8ce80c4bc5d2a039688e91e8fb72620cf5aa9372..960597f9b1f5d1b772f4b7f38440738fb88b20a2 100644
--- a/bench/PatchBench.cpp
+++ b/bench/PatchBench.cpp
@@ -104,12 +104,7 @@ protected:
return fName.c_str();
}
- virtual void preDraw() {
-
- }
-
- virtual void onDraw(const int loops, SkCanvas* canvas) SK_OVERRIDE {
-
+ virtual void onPreDraw() {
this->setCubics();
this->setColors();
this->setTexCoords();
@@ -123,7 +118,9 @@ protected:
fPaint.setShader(NULL);
break;
}
+ }
+ virtual void onDraw(const int loops, SkCanvas* canvas) SK_OVERRIDE {
canvas->scale(fScale.x(), fScale.y());
for (int i = 0; i < loops; i++) {
switch (fVertexMode) {
« no previous file with comments | « no previous file | bench/PatchGridBench.cpp » ('j') | bench/PatchGridBench.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698