| 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 | 7 |
| 8 #include "SkBlitter.h" | 8 #include "SkBlitter.h" |
| 9 #include "SkAntiRun.h" | 9 #include "SkAntiRun.h" |
| 10 #include "SkColor.h" | 10 #include "SkColor.h" |
| 11 #include "SkColorFilter.h" | 11 #include "SkColorFilter.h" |
| 12 #include "SkCoreBlitters.h" | |
| 13 #include "SkFilterShader.h" | 12 #include "SkFilterShader.h" |
| 14 #include "SkReadBuffer.h" | 13 #include "SkReadBuffer.h" |
| 15 #include "SkWriteBuffer.h" | 14 #include "SkWriteBuffer.h" |
| 16 #include "SkMask.h" | 15 #include "SkMask.h" |
| 17 #include "SkMaskFilter.h" | 16 #include "SkMaskFilter.h" |
| 18 #include "SkString.h" | 17 #include "SkString.h" |
| 19 #include "SkTLazy.h" | 18 #include "SkTLazy.h" |
| 20 #include "SkUtils.h" | 19 #include "SkUtils.h" |
| 21 #include "SkXfermode.h" | 20 #include "SkXfermode.h" |
| 22 #include "SkXfermodeInterpretation.h" | 21 #include "SkXfermodeInterpretation.h" |
| (...skipping 946 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 969 fShaderContext->~Context(); | 968 fShaderContext->~Context(); |
| 970 SkShader::Context* ctx = fShader->createContext(rec, (void*)fShaderContext); | 969 SkShader::Context* ctx = fShader->createContext(rec, (void*)fShaderContext); |
| 971 if (NULL == ctx) { | 970 if (NULL == ctx) { |
| 972 // Need a valid context in fShaderContext's storage, so we can later (or
our caller) call | 971 // Need a valid context in fShaderContext's storage, so we can later (or
our caller) call |
| 973 // the in-place destructor. | 972 // the in-place destructor. |
| 974 SkNEW_PLACEMENT_ARGS(fShaderContext, SkZeroShaderContext, (*fShader, rec
)); | 973 SkNEW_PLACEMENT_ARGS(fShaderContext, SkZeroShaderContext, (*fShader, rec
)); |
| 975 return false; | 974 return false; |
| 976 } | 975 } |
| 977 return true; | 976 return true; |
| 978 } | 977 } |
| OLD | NEW |