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

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

Issue 450423002: add a simple ascii-art debug thing for AA clips (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add a Y compression flag to the aa clip debugger Created 6 years, 4 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 | « no previous file | 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 /* 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 8
9 #ifndef SkAAClip_DEFINED 9 #ifndef SkAAClip_DEFINED
10 #define SkAAClip_DEFINED 10 #define SkAAClip_DEFINED
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 const uint8_t* findRow(int y, int* lastYForRow = NULL) const; 68 const uint8_t* findRow(int y, int* lastYForRow = NULL) const;
69 const uint8_t* findX(const uint8_t data[], int x, int* initialCount = NULL) const; 69 const uint8_t* findX(const uint8_t data[], int x, int* initialCount = NULL) const;
70 70
71 class Iter; 71 class Iter;
72 struct RunHead; 72 struct RunHead;
73 struct YOffset; 73 struct YOffset;
74 class Builder; 74 class Builder;
75 75
76 #ifdef SK_DEBUG 76 #ifdef SK_DEBUG
77 void validate() const; 77 void validate() const;
78 void debug(bool compress_y=false) const;
78 #else 79 #else
79 void validate() const {} 80 void validate() const {}
81 void debug(bool compress_y=false) const {}
80 #endif 82 #endif
81 83
82 private: 84 private:
83 SkIRect fBounds; 85 SkIRect fBounds;
84 RunHead* fRunHead; 86 RunHead* fRunHead;
85 87
86 void freeRuns(); 88 void freeRuns();
87 bool trimBounds(); 89 bool trimBounds();
88 bool trimTopBottom(); 90 bool trimTopBottom();
89 bool trimLeftRight(); 91 bool trimLeftRight();
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 enum { 129 enum {
128 kSize = 32 * 32 130 kSize = 32 * 32
129 }; 131 };
130 SkAutoSMalloc<kSize> fGrayMaskScratch; // used for blitMask 132 SkAutoSMalloc<kSize> fGrayMaskScratch; // used for blitMask
131 void* fScanlineScratch; // enough for a mask at 32bit, or runs+aa 133 void* fScanlineScratch; // enough for a mask at 32bit, or runs+aa
132 134
133 void ensureRunsAndAA(); 135 void ensureRunsAndAA();
134 }; 136 };
135 137
136 #endif 138 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkAAClip.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698