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

Side by Side Diff: src/core/SkAAClip.h

Issue 1893433002: In SkDraw::drawRect, use SkPath for huge rects. Base URL: https://skia.googlesource.com/skia@fixed-assert
Patch Set: Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « include/core/SkScalar.h ('k') | src/core/SkAAClip.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 7
8 #ifndef SkAAClip_DEFINED 8 #ifndef SkAAClip_DEFINED
9 #define SkAAClip_DEFINED 9 #define SkAAClip_DEFINED
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 * the mask, using kA8_Format 56 * the mask, using kA8_Format
57 */ 57 */
58 void copyToMask(SkMask*) const; 58 void copyToMask(SkMask*) const;
59 59
60 // called internally 60 // called internally
61 61
62 bool quickContains(int left, int top, int right, int bottom) const; 62 bool quickContains(int left, int top, int right, int bottom) const;
63 bool quickContains(const SkIRect& r) const { 63 bool quickContains(const SkIRect& r) const {
64 return this->quickContains(r.fLeft, r.fTop, r.fRight, r.fBottom); 64 return this->quickContains(r.fLeft, r.fTop, r.fRight, r.fBottom);
65 } 65 }
66 bool quickContains(const SkRect& r) const;
66 67
67 const uint8_t* findRow(int y, int* lastYForRow = nullptr) const; 68 const uint8_t* findRow(int y, int* lastYForRow = nullptr) const;
68 const uint8_t* findX(const uint8_t data[], int x, int* initialCount = nullpt r) const; 69 const uint8_t* findX(const uint8_t data[], int x, int* initialCount = nullpt r) const;
69 70
70 class Iter; 71 class Iter;
71 struct RunHead; 72 struct RunHead;
72 struct YOffset; 73 struct YOffset;
73 class Builder; 74 class Builder;
74 75
75 #ifdef SK_DEBUG 76 #ifdef SK_DEBUG
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 enum { 128 enum {
128 kSize = 32 * 32 129 kSize = 32 * 32
129 }; 130 };
130 SkAutoSMalloc<kSize> fGrayMaskScratch; // used for blitMask 131 SkAutoSMalloc<kSize> fGrayMaskScratch; // used for blitMask
131 void* fScanlineScratch; // enough for a mask at 32bit, or runs+aa 132 void* fScanlineScratch; // enough for a mask at 32bit, or runs+aa
132 133
133 void ensureRunsAndAA(); 134 void ensureRunsAndAA();
134 }; 135 };
135 136
136 #endif 137 #endif
OLDNEW
« no previous file with comments | « include/core/SkScalar.h ('k') | src/core/SkAAClip.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698