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

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

Issue 1246193002: Moved GrGLFragmentProcessor definition to its own file (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 5 years, 5 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/SkPerlinNoiseShader.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 * Copyright 2015 Google Inc. 2 * Copyright 2015 Google Inc.
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 "SkBitmap.h" 8 #include "SkBitmap.h"
9 #include "SkTableColorFilter.h" 9 #include "SkTableColorFilter.h"
10 #include "SkColorPriv.h" 10 #include "SkColorPriv.h"
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 330
331 return SkTableColorFilter::CreateARGB(concatA, concatR, concatG, concatB); 331 return SkTableColorFilter::CreateARGB(concatA, concatR, concatG, concatB);
332 } 332 }
333 333
334 #if SK_SUPPORT_GPU 334 #if SK_SUPPORT_GPU
335 335
336 #include "GrFragmentProcessor.h" 336 #include "GrFragmentProcessor.h"
337 #include "GrInvariantOutput.h" 337 #include "GrInvariantOutput.h"
338 #include "SkGr.h" 338 #include "SkGr.h"
339 #include "effects/GrTextureStripAtlas.h" 339 #include "effects/GrTextureStripAtlas.h"
340 #include "gl/GrGLProcessor.h" 340 #include "gl/GrGLFragmentProcessor.h"
341 #include "gl/builders/GrGLProgramBuilder.h" 341 #include "gl/builders/GrGLProgramBuilder.h"
342 342
343 class ColorTableEffect : public GrFragmentProcessor { 343 class ColorTableEffect : public GrFragmentProcessor {
344 public: 344 public:
345 static GrFragmentProcessor* Create(GrContext* context, SkBitmap bitmap, unsi gned flags); 345 static GrFragmentProcessor* Create(GrContext* context, SkBitmap bitmap, unsi gned flags);
346 346
347 virtual ~ColorTableEffect(); 347 virtual ~ColorTableEffect();
348 348
349 const char* name() const override { return "ColorTable"; } 349 const char* name() const override { return "ColorTable"; }
350 350
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 SkColorFilter* SkTableColorFilter::CreateARGB(const uint8_t tableA[256], 621 SkColorFilter* SkTableColorFilter::CreateARGB(const uint8_t tableA[256],
622 const uint8_t tableR[256], 622 const uint8_t tableR[256],
623 const uint8_t tableG[256], 623 const uint8_t tableG[256],
624 const uint8_t tableB[256]) { 624 const uint8_t tableB[256]) {
625 return SkNEW_ARGS(SkTable_ColorFilter, (tableA, tableR, tableG, tableB)); 625 return SkNEW_ARGS(SkTable_ColorFilter, (tableA, tableR, tableG, tableB));
626 } 626 }
627 627
628 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkTableColorFilter) 628 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkTableColorFilter)
629 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkTable_ColorFilter) 629 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkTable_ColorFilter)
630 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END 630 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END
OLDNEW
« no previous file with comments | « src/effects/SkPerlinNoiseShader.cpp ('k') | src/effects/gradients/SkGradientShaderPriv.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698