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

Side by Side Diff: src/utils/SkBoundaryPatch.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 | « src/text/SkTextLayout.cpp ('k') | src/utils/SkDumpCanvas.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 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 #include "SkBoundaryPatch.h" 8 #include "SkBoundaryPatch.h"
9 9
10 SK_DEFINE_INST_COUNT(SkBoundary)
11
12 SkBoundaryPatch::SkBoundaryPatch() : fBoundary(NULL) {} 10 SkBoundaryPatch::SkBoundaryPatch() : fBoundary(NULL) {}
13 11
14 SkBoundaryPatch::~SkBoundaryPatch() { 12 SkBoundaryPatch::~SkBoundaryPatch() {
15 SkSafeUnref(fBoundary); 13 SkSafeUnref(fBoundary);
16 } 14 }
17 15
18 SkBoundary* SkBoundaryPatch::setBoundary(SkBoundary* b) { 16 SkBoundary* SkBoundaryPatch::setBoundary(SkBoundary* b) {
19 SkRefCnt_SafeAssign(fBoundary, b); 17 SkRefCnt_SafeAssign(fBoundary, b);
20 return b; 18 return b;
21 } 19 }
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 SkPoint SkCubicBoundary::eval(Edge e, SkScalar t) { 70 SkPoint SkCubicBoundary::eval(Edge e, SkScalar t) {
73 SkASSERT((unsigned)e < 4); 71 SkASSERT((unsigned)e < 4);
74 72
75 // ensure our 4th cubic wraps to the start of the first 73 // ensure our 4th cubic wraps to the start of the first
76 fPts[12] = fPts[0]; 74 fPts[12] = fPts[0];
77 75
78 SkPoint loc; 76 SkPoint loc;
79 SkEvalCubicAt(&fPts[e * 3], t, &loc, NULL, NULL); 77 SkEvalCubicAt(&fPts[e * 3], t, &loc, NULL, NULL);
80 return loc; 78 return loc;
81 } 79 }
OLDNEW
« no previous file with comments | « src/text/SkTextLayout.cpp ('k') | src/utils/SkDumpCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698