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

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

Issue 377503004: Make GrDrawState and GrPaint take GrEffect* instead of GrEffectRef*. (Closed) Base URL: https://skia.googlesource.com/skia.git@no_ref
Patch Set: Update YUV effect to reflect these changes. Created 6 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/SkLinearGradient.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 25 matching lines...) Expand all
36 } 36 }
37 } 37 }
38 38
39 virtual ~SkTable_ColorFilter() { 39 virtual ~SkTable_ColorFilter() {
40 SkDELETE(fBitmap); 40 SkDELETE(fBitmap);
41 } 41 }
42 42
43 virtual bool asComponentTable(SkBitmap* table) const SK_OVERRIDE; 43 virtual bool asComponentTable(SkBitmap* table) const SK_OVERRIDE;
44 44
45 #if SK_SUPPORT_GPU 45 #if SK_SUPPORT_GPU
46 virtual GrEffectRef* asNewEffect(GrContext* context) const SK_OVERRIDE; 46 virtual GrEffect* asNewEffect(GrContext* context) const SK_OVERRIDE;
47 #endif 47 #endif
48 48
49 virtual void filterSpan(const SkPMColor src[], int count, 49 virtual void filterSpan(const SkPMColor src[], int count,
50 SkPMColor dst[]) const SK_OVERRIDE; 50 SkPMColor dst[]) const SK_OVERRIDE;
51 51
52 SK_TO_STRING_OVERRIDE() 52 SK_TO_STRING_OVERRIDE()
53 53
54 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkTable_ColorFilter) 54 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkTable_ColorFilter)
55 55
56 enum { 56 enum {
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 SkColorFilter* SkTableColorFilter::CreateARGB(const uint8_t tableA[256], 425 SkColorFilter* SkTableColorFilter::CreateARGB(const uint8_t tableA[256],
426 const uint8_t tableR[256], 426 const uint8_t tableR[256],
427 const uint8_t tableG[256], 427 const uint8_t tableG[256],
428 const uint8_t tableB[256]) { 428 const uint8_t tableB[256]) {
429 return SkNEW_ARGS(SkTable_ColorFilter, (tableA, tableR, tableG, tableB)); 429 return SkNEW_ARGS(SkTable_ColorFilter, (tableA, tableR, tableG, tableB));
430 } 430 }
431 431
432 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkTableColorFilter) 432 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkTableColorFilter)
433 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkTable_ColorFilter) 433 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkTable_ColorFilter)
434 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END 434 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END
OLDNEW
« no previous file with comments | « src/effects/SkPerlinNoiseShader.cpp ('k') | src/effects/gradients/SkLinearGradient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698