2009-01-05 06:34:50 +03:00
|
|
|
#include "SkBenchmark.h"
|
2009-01-19 23:08:35 +03:00
|
|
|
#include "SkPaint.h"
|
|
|
|
|
|
|
|
SkBenchmark::SkBenchmark() {
|
|
|
|
fForceAlpha = 0xFF;
|
|
|
|
fForceAA = true;
|
|
|
|
}
|
2009-01-05 06:34:50 +03:00
|
|
|
|
|
|
|
const char* SkBenchmark::getName() {
|
|
|
|
return this->onGetName();
|
|
|
|
}
|
|
|
|
|
|
|
|
SkIPoint SkBenchmark::getSize() {
|
|
|
|
return this->onGetSize();
|
|
|
|
}
|
|
|
|
|
|
|
|
void SkBenchmark::draw(SkCanvas* canvas) {
|
|
|
|
this->onDraw(canvas);
|
|
|
|
}
|
|
|
|
|
2009-01-19 23:08:35 +03:00
|
|
|
void SkBenchmark::setupPaint(SkPaint* paint) {
|
|
|
|
paint->setAlpha(fForceAlpha);
|
|
|
|
paint->setAntiAlias(fForceAA);
|
|
|
|
}
|
|
|
|
|
|
|
|
|