| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |