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

Unified Diff: bench/SkBenchmark.cpp

Issue 347823004: Remove Sk prefix from some bench classes. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: SkGMBench -> GMBench Created 6 years, 6 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 | « bench/SkBenchmark.h ('k') | bench/SkGMBench.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
-}
« no previous file with comments | « bench/SkBenchmark.h ('k') | bench/SkGMBench.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698