Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(512)

Side by Side Diff: src/effects/SkTableColorFilter.cpp

Issue 660573002: Split GrFragmentProcessor into its own header (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add file to git Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/effects/SkLightingImageFilter.cpp ('k') | src/effects/gradients/SkGradientShaderPriv.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 } 268 }
269 fBitmap = bmp; 269 fBitmap = bmp;
270 } 270 }
271 *table = *fBitmap; 271 *table = *fBitmap;
272 } 272 }
273 return true; 273 return true;
274 } 274 }
275 275
276 #if SK_SUPPORT_GPU 276 #if SK_SUPPORT_GPU
277 277
278 #include "GrProcessor.h" 278 #include "GrFragmentProcessor.h"
279 #include "GrTBackendProcessorFactory.h" 279 #include "GrTBackendProcessorFactory.h"
280 #include "gl/GrGLProcessor.h" 280 #include "gl/GrGLProcessor.h"
281 #include "gl/builders/GrGLProgramBuilder.h" 281 #include "gl/builders/GrGLProgramBuilder.h"
282 #include "SkGr.h" 282 #include "SkGr.h"
283 283
284 class GLColorTableEffect; 284 class GLColorTableEffect;
285 285
286 class ColorTableEffect : public GrFragmentProcessor { 286 class ColorTableEffect : public GrFragmentProcessor {
287 public: 287 public:
288 static GrFragmentProcessor* Create(GrTexture* texture, unsigned flags) { 288 static GrFragmentProcessor* Create(GrTexture* texture, unsigned flags) {
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 SkColorFilter* SkTableColorFilter::CreateARGB(const uint8_t tableA[256], 462 SkColorFilter* SkTableColorFilter::CreateARGB(const uint8_t tableA[256],
463 const uint8_t tableR[256], 463 const uint8_t tableR[256],
464 const uint8_t tableG[256], 464 const uint8_t tableG[256],
465 const uint8_t tableB[256]) { 465 const uint8_t tableB[256]) {
466 return SkNEW_ARGS(SkTable_ColorFilter, (tableA, tableR, tableG, tableB)); 466 return SkNEW_ARGS(SkTable_ColorFilter, (tableA, tableR, tableG, tableB));
467 } 467 }
468 468
469 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkTableColorFilter) 469 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkTableColorFilter)
470 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkTable_ColorFilter) 470 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkTable_ColorFilter)
471 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END 471 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END
OLDNEW
« no previous file with comments | « src/effects/SkLightingImageFilter.cpp ('k') | src/effects/gradients/SkGradientShaderPriv.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698