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

Side by Side Diff: src/core/SkColorShader.h

Issue 1556003003: remove shadeSpan16 from shader (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: cleanup unused macro-generated procs Created 4 years, 11 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/core/SkBlitter_RGB16.cpp ('k') | src/core/SkFilterShader.cpp » ('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 2007 The Android Open Source Project 2 * Copyright 2007 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 #ifndef SkColorShader_DEFINED 8 #ifndef SkColorShader_DEFINED
9 #define SkColorShader_DEFINED 9 #define SkColorShader_DEFINED
10 10
(...skipping 16 matching lines...) Expand all
27 27
28 size_t contextSize() const override { 28 size_t contextSize() const override {
29 return sizeof(ColorShaderContext); 29 return sizeof(ColorShaderContext);
30 } 30 }
31 31
32 class ColorShaderContext : public SkShader::Context { 32 class ColorShaderContext : public SkShader::Context {
33 public: 33 public:
34 ColorShaderContext(const SkColorShader& shader, const ContextRec&); 34 ColorShaderContext(const SkColorShader& shader, const ContextRec&);
35 35
36 uint32_t getFlags() const override; 36 uint32_t getFlags() const override;
37 uint8_t getSpan16Alpha() const override;
38 void shadeSpan(int x, int y, SkPMColor span[], int count) override; 37 void shadeSpan(int x, int y, SkPMColor span[], int count) override;
39 void shadeSpan16(int x, int y, uint16_t span[], int count) override;
40 void shadeSpanAlpha(int x, int y, uint8_t alpha[], int count) override; 38 void shadeSpanAlpha(int x, int y, uint8_t alpha[], int count) override;
41 39
42 private: 40 private:
43 SkPMColor fPMColor; 41 SkPMColor fPMColor;
44 uint32_t fFlags; 42 uint32_t fFlags;
45 uint16_t fColor16;
46 43
47 typedef SkShader::Context INHERITED; 44 typedef SkShader::Context INHERITED;
48 }; 45 };
49 46
50 GradientType asAGradient(GradientInfo* info) const override; 47 GradientType asAGradient(GradientInfo* info) const override;
51 48
52 #if SK_SUPPORT_GPU 49 #if SK_SUPPORT_GPU
53 const GrFragmentProcessor* asFragmentProcessor(GrContext*, const SkMatrix& v iewM, 50 const GrFragmentProcessor* asFragmentProcessor(GrContext*, const SkMatrix& v iewM,
54 const SkMatrix*, SkFilterQual ity) const override; 51 const SkMatrix*, SkFilterQual ity) const override;
55 #endif 52 #endif
(...skipping 10 matching lines...) Expand all
66 return true; 63 return true;
67 } 64 }
68 65
69 private: 66 private:
70 SkColor fColor; 67 SkColor fColor;
71 68
72 typedef SkShader INHERITED; 69 typedef SkShader INHERITED;
73 }; 70 };
74 71
75 #endif 72 #endif
OLDNEW
« no previous file with comments | « src/core/SkBlitter_RGB16.cpp ('k') | src/core/SkFilterShader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698