| Index: bench/SkBenchmark.cpp
|
| diff --git a/bench/SkBenchmark.cpp b/bench/SkBenchmark.cpp
|
| deleted file mode 100644
|
| index 4c5d077b532ff1076a03eb1473667c9e0144c60b..0000000000000000000000000000000000000000
|
| --- a/bench/SkBenchmark.cpp
|
| +++ /dev/null
|
| @@ -1,56 +0,0 @@
|
| -/*
|
| - * Copyright 2011 Google Inc.
|
| - *
|
| - * Use of this source code is governed by a BSD-style license that can be
|
| - * found in the LICENSE file.
|
| - */
|
| -
|
| -#include "SkBenchmark.h"
|
| -
|
| -#include "SkPaint.h"
|
| -#include "SkParse.h"
|
| -
|
| -const char* SkTriState::Name[] = { "default", "true", "false" };
|
| -
|
| -template BenchRegistry* BenchRegistry::gHead;
|
| -
|
| -SkBenchmark::SkBenchmark() {
|
| - fForceAlpha = 0xFF;
|
| - fForceAA = true;
|
| - fForceFilter = false;
|
| - fDither = SkTriState::kDefault;
|
| - fOrMask = fClearMask = 0;
|
| -}
|
| -
|
| -const char* SkBenchmark::getName() {
|
| - return this->onGetName();
|
| -}
|
| -
|
| -SkIPoint SkBenchmark::getSize() {
|
| - return this->onGetSize();
|
| -}
|
| -
|
| -void SkBenchmark::preDraw() {
|
| - this->onPreDraw();
|
| -}
|
| -
|
| -void SkBenchmark::draw(const int loops, SkCanvas* canvas) {
|
| - this->onDraw(loops, canvas);
|
| -}
|
| -
|
| -void SkBenchmark::setupPaint(SkPaint* paint) {
|
| - paint->setAlpha(fForceAlpha);
|
| - paint->setAntiAlias(fForceAA);
|
| - paint->setFilterLevel(fForceFilter ? SkPaint::kLow_FilterLevel
|
| - : SkPaint::kNone_FilterLevel);
|
| -
|
| - paint->setFlags((paint->getFlags() & ~fClearMask) | fOrMask);
|
| -
|
| - if (SkTriState::kDefault != fDither) {
|
| - paint->setDither(SkTriState::kTrue == fDither);
|
| - }
|
| -}
|
| -
|
| -SkIPoint SkBenchmark::onGetSize() {
|
| - return SkIPoint::Make(640, 480);
|
| -}
|
|
|