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