| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
| 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 #define __STDC_LIMIT_MACROS | 7 #define __STDC_LIMIT_MACROS |
| 8 | 8 |
| 9 #include "SkDraw.h" | 9 #include "SkDraw.h" |
| 10 #include "SkBlitter.h" | 10 #include "SkBlitter.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #include "SkRRect.h" | 23 #include "SkRRect.h" |
| 24 #include "SkScan.h" | 24 #include "SkScan.h" |
| 25 #include "SkShader.h" | 25 #include "SkShader.h" |
| 26 #include "SkSmallAllocator.h" | 26 #include "SkSmallAllocator.h" |
| 27 #include "SkString.h" | 27 #include "SkString.h" |
| 28 #include "SkStroke.h" | 28 #include "SkStroke.h" |
| 29 #include "SkStrokeRec.h" | 29 #include "SkStrokeRec.h" |
| 30 #include "SkTemplates.h" | 30 #include "SkTemplates.h" |
| 31 #include "SkTextMapStateProc.h" | 31 #include "SkTextMapStateProc.h" |
| 32 #include "SkTLazy.h" | 32 #include "SkTLazy.h" |
| 33 #include "SkUtility.h" | |
| 34 #include "SkUtils.h" | 33 #include "SkUtils.h" |
| 35 #include "SkVertState.h" | 34 #include "SkVertState.h" |
| 36 | 35 |
| 37 #include "SkBitmapProcShader.h" | 36 #include "SkBitmapProcShader.h" |
| 38 #include "SkDrawProcs.h" | 37 #include "SkDrawProcs.h" |
| 39 #include "SkMatrixUtils.h" | 38 #include "SkMatrixUtils.h" |
| 40 | 39 |
| 41 //#define TRACE_BITMAP_DRAWS | 40 //#define TRACE_BITMAP_DRAWS |
| 42 | 41 |
| 43 // Helper function to fix code gen bug on ARM64. | 42 // Helper function to fix code gen bug on ARM64. |
| (...skipping 2033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2077 mask->fImage = SkMask::AllocImage(size); | 2076 mask->fImage = SkMask::AllocImage(size); |
| 2078 memset(mask->fImage, 0, mask->computeImageSize()); | 2077 memset(mask->fImage, 0, mask->computeImageSize()); |
| 2079 } | 2078 } |
| 2080 | 2079 |
| 2081 if (SkMask::kJustComputeBounds_CreateMode != mode) { | 2080 if (SkMask::kJustComputeBounds_CreateMode != mode) { |
| 2082 draw_into_mask(*mask, devPath, style); | 2081 draw_into_mask(*mask, devPath, style); |
| 2083 } | 2082 } |
| 2084 | 2083 |
| 2085 return true; | 2084 return true; |
| 2086 } | 2085 } |
| OLD | NEW |