| 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 107     SkTBlitterAllocator fAllocator; | 107     SkTBlitterAllocator fAllocator; | 
| 108 }; | 108 }; | 
| 109 #define SkAutoBitmapShaderInstall(...) SK_REQUIRE_LOCAL_VAR(SkAutoBitmapShaderIn
      stall) | 109 #define SkAutoBitmapShaderInstall(...) SK_REQUIRE_LOCAL_VAR(SkAutoBitmapShaderIn
      stall) | 
| 110 | 110 | 
| 111 /////////////////////////////////////////////////////////////////////////////// | 111 /////////////////////////////////////////////////////////////////////////////// | 
| 112 | 112 | 
| 113 SkDraw::SkDraw() { | 113 SkDraw::SkDraw() { | 
| 114     sk_bzero(this, sizeof(*this)); | 114     sk_bzero(this, sizeof(*this)); | 
| 115 } | 115 } | 
| 116 | 116 | 
| 117 SkDraw::SkDraw(const SkDraw& src) { |  | 
| 118     memcpy(this, &src, sizeof(*this)); |  | 
| 119 } |  | 
| 120 |  | 
| 121 bool SkDraw::computeConservativeLocalClipBounds(SkRect* localBounds) const { | 117 bool SkDraw::computeConservativeLocalClipBounds(SkRect* localBounds) const { | 
| 122     if (fRC->isEmpty()) { | 118     if (fRC->isEmpty()) { | 
| 123         return false; | 119         return false; | 
| 124     } | 120     } | 
| 125 | 121 | 
| 126     SkMatrix inverse; | 122     SkMatrix inverse; | 
| 127     if (!fMatrix->invert(&inverse)) { | 123     if (!fMatrix->invert(&inverse)) { | 
| 128         return false; | 124         return false; | 
| 129     } | 125     } | 
| 130 | 126 | 
| (...skipping 1949 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2080         mask->fImage = SkMask::AllocImage(size); | 2076         mask->fImage = SkMask::AllocImage(size); | 
| 2081         memset(mask->fImage, 0, mask->computeImageSize()); | 2077         memset(mask->fImage, 0, mask->computeImageSize()); | 
| 2082     } | 2078     } | 
| 2083 | 2079 | 
| 2084     if (SkMask::kJustComputeBounds_CreateMode != mode) { | 2080     if (SkMask::kJustComputeBounds_CreateMode != mode) { | 
| 2085         draw_into_mask(*mask, devPath, style); | 2081         draw_into_mask(*mask, devPath, style); | 
| 2086     } | 2082     } | 
| 2087 | 2083 | 
| 2088     return true; | 2084     return true; | 
| 2089 } | 2085 } | 
| OLD | NEW | 
|---|