| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 GrSWMaskHelper_DEFINED | 8 #ifndef GrSWMaskHelper_DEFINED |
| 9 #define GrSWMaskHelper_DEFINED | 9 #define GrSWMaskHelper_DEFINED |
| 10 | 10 |
| 11 #include "GrColor.h" | 11 #include "GrColor.h" |
| 12 #include "GrPipelineBuilder.h" | 12 #include "GrPipelineBuilder.h" |
| 13 #include "SkBitmap.h" | 13 #include "SkBitmap.h" |
| 14 #include "SkDraw.h" | 14 #include "SkDraw.h" |
| 15 #include "SkMatrix.h" | 15 #include "SkMatrix.h" |
| 16 #include "SkRasterClip.h" | 16 #include "SkRasterClip.h" |
| 17 #include "SkRegion.h" | 17 #include "SkRegion.h" |
| 18 #include "SkTextureCompressor.h" | 18 #include "SkTextureCompressor.h" |
| 19 #include "SkTypes.h" | 19 #include "SkTypes.h" |
| 20 | 20 |
| 21 class GrClip; |
| 21 class GrContext; | 22 class GrContext; |
| 22 class GrTexture; | 23 class GrTexture; |
| 23 class SkPath; | 24 class SkPath; |
| 24 class SkStrokeRec; | 25 class SkStrokeRec; |
| 25 class GrDrawTarget; | 26 class GrDrawTarget; |
| 26 | 27 |
| 27 /** | 28 /** |
| 28 * The GrSWMaskHelper helps generate clip masks using the software rendering | 29 * The GrSWMaskHelper helps generate clip masks using the software rendering |
| 29 * path. It is intended to be used as: | 30 * path. It is intended to be used as: |
| 30 * | 31 * |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 const void *data, size_t rowbytes); | 133 const void *data, size_t rowbytes); |
| 133 | 134 |
| 134 // Compresses the bitmap stored in fBM and sends the compressed data | 135 // Compresses the bitmap stored in fBM and sends the compressed data |
| 135 // to the GPU to be stored in 'texture' using sendTextureData. | 136 // to the GPU to be stored in 'texture' using sendTextureData. |
| 136 void compressTextureData(GrTexture *texture, const GrSurfaceDesc& desc); | 137 void compressTextureData(GrTexture *texture, const GrSurfaceDesc& desc); |
| 137 | 138 |
| 138 typedef SkNoncopyable INHERITED; | 139 typedef SkNoncopyable INHERITED; |
| 139 }; | 140 }; |
| 140 | 141 |
| 141 #endif // GrSWMaskHelper_DEFINED | 142 #endif // GrSWMaskHelper_DEFINED |
| OLD | NEW |