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

Side by Side Diff: bench/SkBenchmark.cpp

Issue 98703002: Fix compilation with SK_ENABLE_INST_COUNT=1 (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « bench/RefCntBench.cpp ('k') | gm/gm_expectations.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 #include "SkBenchmark.h" 7 #include "SkBenchmark.h"
8 #include "SkPaint.h" 8 #include "SkPaint.h"
9 #include "SkParse.h" 9 #include "SkParse.h"
10 10
11 const char* SkTriState::Name[] = { "default", "true", "false" }; 11 const char* SkTriState::Name[] = { "default", "true", "false" };
12 12
13 SK_DEFINE_INST_COUNT(SkBenchmark)
14
15 template BenchRegistry* BenchRegistry::gHead; 13 template BenchRegistry* BenchRegistry::gHead;
16 14
17 SkString SkBenchmark::gResourcePath; 15 SkString SkBenchmark::gResourcePath;
18 16
19 SkBenchmark::SkBenchmark() { 17 SkBenchmark::SkBenchmark() {
20 fForceAlpha = 0xFF; 18 fForceAlpha = 0xFF;
21 fForceAA = true; 19 fForceAA = true;
22 fForceFilter = false; 20 fForceFilter = false;
23 fDither = SkTriState::kDefault; 21 fDither = SkTriState::kDefault;
24 fOrMask = fClearMask = 0; 22 fOrMask = fClearMask = 0;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 paint->setDither(SkTriState::kTrue == fDither); 54 paint->setDither(SkTriState::kTrue == fDither);
57 } 55 }
58 } 56 }
59 57
60 58
61 /////////////////////////////////////////////////////////////////////////////// 59 ///////////////////////////////////////////////////////////////////////////////
62 60
63 SkIPoint SkBenchmark::onGetSize() { 61 SkIPoint SkBenchmark::onGetSize() {
64 return SkIPoint::Make(640, 480); 62 return SkIPoint::Make(640, 480);
65 } 63 }
OLDNEW
« no previous file with comments | « bench/RefCntBench.cpp ('k') | gm/gm_expectations.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698