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

Side by Side Diff: src/core/SkPathEffect.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/core/SkPath.cpp ('k') | src/core/SkPathHeap.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 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
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 8
9 #include "SkPathEffect.h" 9 #include "SkPathEffect.h"
10 #include "SkPath.h" 10 #include "SkPath.h"
11 #include "SkFlattenableBuffers.h" 11 #include "SkFlattenableBuffers.h"
12 12
13 /////////////////////////////////////////////////////////////////////////////// 13 ///////////////////////////////////////////////////////////////////////////////
14 14
15 SK_DEFINE_INST_COUNT(SkPathEffect)
16
17 void SkPathEffect::computeFastBounds(SkRect* dst, const SkRect& src) const { 15 void SkPathEffect::computeFastBounds(SkRect* dst, const SkRect& src) const {
18 *dst = src; 16 *dst = src;
19 } 17 }
20 18
21 bool SkPathEffect::asPoints(PointData* results, const SkPath& src, 19 bool SkPathEffect::asPoints(PointData* results, const SkPath& src,
22 const SkStrokeRec&, const SkMatrix&, const SkRect*) const { 20 const SkStrokeRec&, const SkMatrix&, const SkRect*) const {
23 return false; 21 return false;
24 } 22 }
25 23
26 /////////////////////////////////////////////////////////////////////////////// 24 ///////////////////////////////////////////////////////////////////////////////
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 } 70 }
73 71
74 /////////////////////////////////////////////////////////////////////////////// 72 ///////////////////////////////////////////////////////////////////////////////
75 73
76 bool SkSumPathEffect::filterPath(SkPath* dst, const SkPath& src, 74 bool SkSumPathEffect::filterPath(SkPath* dst, const SkPath& src,
77 SkStrokeRec* rec, const SkRect* cullRect) const { 75 SkStrokeRec* rec, const SkRect* cullRect) const {
78 // use bit-or so that we always call both, even if the first one succeeds 76 // use bit-or so that we always call both, even if the first one succeeds
79 return fPE0->filterPath(dst, src, rec, cullRect) | 77 return fPE0->filterPath(dst, src, rec, cullRect) |
80 fPE1->filterPath(dst, src, rec, cullRect); 78 fPE1->filterPath(dst, src, rec, cullRect);
81 } 79 }
OLDNEW
« no previous file with comments | « src/core/SkPath.cpp ('k') | src/core/SkPathHeap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698