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

Side by Side Diff: src/core/SkMaskFilter.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/SkImageFilter.cpp ('k') | src/core/SkMaskGamma.h » ('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 9
10 #include "SkMaskFilter.h" 10 #include "SkMaskFilter.h"
11 #include "SkBlitter.h" 11 #include "SkBlitter.h"
12 #include "SkBounder.h" 12 #include "SkBounder.h"
13 #include "SkDraw.h" 13 #include "SkDraw.h"
14 #include "SkRasterClip.h" 14 #include "SkRasterClip.h"
15 #include "SkRRect.h" 15 #include "SkRRect.h"
16 #include "SkTypes.h" 16 #include "SkTypes.h"
17 17
18 #if SK_SUPPORT_GPU 18 #if SK_SUPPORT_GPU
19 #include "GrTexture.h" 19 #include "GrTexture.h"
20 #include "SkGr.h" 20 #include "SkGr.h"
21 #include "SkGrPixelRef.h" 21 #include "SkGrPixelRef.h"
22 #endif 22 #endif
23 23
24 SK_DEFINE_INST_COUNT(SkMaskFilter)
25
26 bool SkMaskFilter::filterMask(SkMask*, const SkMask&, const SkMatrix&, 24 bool SkMaskFilter::filterMask(SkMask*, const SkMask&, const SkMatrix&,
27 SkIPoint*) const { 25 SkIPoint*) const {
28 return false; 26 return false;
29 } 27 }
30 28
31 static void extractMaskSubset(const SkMask& src, SkMask* dst) { 29 static void extractMaskSubset(const SkMask& src, SkMask* dst) {
32 SkASSERT(src.fBounds.contains(dst->fBounds)); 30 SkASSERT(src.fBounds.contains(dst->fBounds));
33 31
34 const int dx = dst->fBounds.left() - src.fBounds.left(); 32 const int dx = dst->fBounds.left() - src.fBounds.left();
35 const int dy = dst->fBounds.top() - src.fBounds.top(); 33 const int dy = dst->fBounds.top() - src.fBounds.top();
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 srcM.fRowBytes = 0; 372 srcM.fRowBytes = 0;
375 srcM.fFormat = SkMask::kA8_Format; 373 srcM.fFormat = SkMask::kA8_Format;
376 374
377 SkIPoint margin; // ignored 375 SkIPoint margin; // ignored
378 if (this->filterMask(&dstM, srcM, SkMatrix::I(), &margin)) { 376 if (this->filterMask(&dstM, srcM, SkMatrix::I(), &margin)) {
379 dst->set(dstM.fBounds); 377 dst->set(dstM.fBounds);
380 } else { 378 } else {
381 dst->set(srcM.fBounds); 379 dst->set(srcM.fBounds);
382 } 380 }
383 } 381 }
OLDNEW
« no previous file with comments | « src/core/SkImageFilter.cpp ('k') | src/core/SkMaskGamma.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698