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 "SkAtomics.h" | 8 #include "SkAtomics.h" |
9 #include "SkBitmapProcShader.h" | 9 #include "SkBitmapProcShader.h" |
10 #include "SkColorShader.h" | 10 #include "SkColorShader.h" |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 | 110 |
111 fPaintAlpha = rec.fPaint->getAlpha(); | 111 fPaintAlpha = rec.fPaint->getAlpha(); |
112 } | 112 } |
113 | 113 |
114 SkShader::Context::~Context() {} | 114 SkShader::Context::~Context() {} |
115 | 115 |
116 SkShader::Context::ShadeProc SkShader::Context::asAShadeProc(void** ctx) { | 116 SkShader::Context::ShadeProc SkShader::Context::asAShadeProc(void** ctx) { |
117 return nullptr; | 117 return nullptr; |
118 } | 118 } |
119 | 119 |
| 120 void SkShader::Context::shadeSpan4f(int x, int y, SkPM4f[], int count) { |
| 121 SkASSERT(!"shadeSpan4f called but not implemented"); |
| 122 } |
| 123 |
120 #include "SkColorPriv.h" | 124 #include "SkColorPriv.h" |
121 | 125 |
122 #define kTempColorQuadCount 6 // balance between speed (larger) and saving sta
ck-space | 126 #define kTempColorQuadCount 6 // balance between speed (larger) and saving sta
ck-space |
123 #define kTempColorCount (kTempColorQuadCount << 2) | 127 #define kTempColorCount (kTempColorQuadCount << 2) |
124 | 128 |
125 #ifdef SK_CPU_BENDIAN | 129 #ifdef SK_CPU_BENDIAN |
126 #define SkU32BitShiftToByteOffset(shift) (3 - ((shift) >> 3)) | 130 #define SkU32BitShiftToByteOffset(shift) (3 - ((shift) >> 3)) |
127 #else | 131 #else |
128 #define SkU32BitShiftToByteOffset(shift) ((shift) >> 3) | 132 #define SkU32BitShiftToByteOffset(shift) ((shift) >> 3) |
129 #endif | 133 #endif |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 #include "SkEmptyShader.h" | 344 #include "SkEmptyShader.h" |
341 | 345 |
342 void SkEmptyShader::toString(SkString* str) const { | 346 void SkEmptyShader::toString(SkString* str) const { |
343 str->append("SkEmptyShader: ("); | 347 str->append("SkEmptyShader: ("); |
344 | 348 |
345 this->INHERITED::toString(str); | 349 this->INHERITED::toString(str); |
346 | 350 |
347 str->append(")"); | 351 str->append(")"); |
348 } | 352 } |
349 #endif | 353 #endif |
OLD | NEW |