OLD | NEW |
1 | 1 |
2 #include "SkBitmap.h" | 2 #include "SkBitmap.h" |
3 #include "SkTableColorFilter.h" | 3 #include "SkTableColorFilter.h" |
4 #include "SkColorPriv.h" | 4 #include "SkColorPriv.h" |
5 #include "SkReadBuffer.h" | 5 #include "SkReadBuffer.h" |
6 #include "SkWriteBuffer.h" | 6 #include "SkWriteBuffer.h" |
7 #include "SkUnPreMultiply.h" | 7 #include "SkUnPreMultiply.h" |
8 #include "SkString.h" | 8 #include "SkString.h" |
9 | 9 |
10 class SkTable_ColorFilter : public SkColorFilter { | 10 class SkTable_ColorFilter : public SkColorFilter { |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 *table = *fBitmap; | 223 *table = *fBitmap; |
224 } | 224 } |
225 return true; | 225 return true; |
226 } | 226 } |
227 | 227 |
228 #if SK_SUPPORT_GPU | 228 #if SK_SUPPORT_GPU |
229 | 229 |
230 #include "GrEffect.h" | 230 #include "GrEffect.h" |
231 #include "GrTBackendEffectFactory.h" | 231 #include "GrTBackendEffectFactory.h" |
232 #include "gl/GrGLEffect.h" | 232 #include "gl/GrGLEffect.h" |
| 233 #include "gl/GrGLShaderBuilder.h" |
233 #include "SkGr.h" | 234 #include "SkGr.h" |
234 | 235 |
235 class GLColorTableEffect; | 236 class GLColorTableEffect; |
236 | 237 |
237 class ColorTableEffect : public GrEffect { | 238 class ColorTableEffect : public GrEffect { |
238 public: | 239 public: |
239 static GrEffect* Create(GrTexture* texture, unsigned flags) { | 240 static GrEffect* Create(GrTexture* texture, unsigned flags) { |
240 return SkNEW_ARGS(ColorTableEffect, (texture, flags)); | 241 return SkNEW_ARGS(ColorTableEffect, (texture, flags)); |
241 } | 242 } |
242 | 243 |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 SkColorFilter* SkTableColorFilter::CreateARGB(const uint8_t tableA[256], | 425 SkColorFilter* SkTableColorFilter::CreateARGB(const uint8_t tableA[256], |
425 const uint8_t tableR[256], | 426 const uint8_t tableR[256], |
426 const uint8_t tableG[256], | 427 const uint8_t tableG[256], |
427 const uint8_t tableB[256]) { | 428 const uint8_t tableB[256]) { |
428 return SkNEW_ARGS(SkTable_ColorFilter, (tableA, tableR, tableG, tableB)); | 429 return SkNEW_ARGS(SkTable_ColorFilter, (tableA, tableR, tableG, tableB)); |
429 } | 430 } |
430 | 431 |
431 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkTableColorFilter) | 432 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkTableColorFilter) |
432 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkTable_ColorFilter) | 433 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkTable_ColorFilter) |
433 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END | 434 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END |
OLD | NEW |