| OLD | NEW |
| 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 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 class ColorShaderContext : public SkShader::Context { | 29 class ColorShaderContext : public SkShader::Context { |
| 30 public: | 30 public: |
| 31 ColorShaderContext(const SkColorShader& shader, const ContextRec&); | 31 ColorShaderContext(const SkColorShader& shader, const ContextRec&); |
| 32 | 32 |
| 33 uint32_t getFlags() const override; | 33 uint32_t getFlags() const override; |
| 34 void shadeSpan(int x, int y, SkPMColor span[], int count) override; | 34 void shadeSpan(int x, int y, SkPMColor span[], int count) override; |
| 35 void shadeSpanAlpha(int x, int y, uint8_t alpha[], int count) override; | 35 void shadeSpanAlpha(int x, int y, uint8_t alpha[], int count) override; |
| 36 void shadeSpan4f(int x, int y, SkPM4f[], int count) override; | 36 void shadeSpan4f(int x, int y, SkPM4f[], int count) override; |
| 37 | 37 |
| 38 protected: |
| 39 BlitProc onChooseBlitProc(const SkImageInfo&, BlitState*) override; |
| 40 |
| 38 private: | 41 private: |
| 39 SkPM4f fPM4f; | 42 SkPM4f fPM4f; |
| 40 SkPMColor fPMColor; | 43 SkPMColor fPMColor; |
| 41 uint32_t fFlags; | 44 uint32_t fFlags; |
| 42 | 45 |
| 43 typedef SkShader::Context INHERITED; | 46 typedef SkShader::Context INHERITED; |
| 44 }; | 47 }; |
| 45 | 48 |
| 46 GradientType asAGradient(GradientInfo* info) const override; | 49 GradientType asAGradient(GradientInfo* info) const override; |
| 47 | 50 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 63 return true; | 66 return true; |
| 64 } | 67 } |
| 65 | 68 |
| 66 private: | 69 private: |
| 67 SkColor fColor; | 70 SkColor fColor; |
| 68 | 71 |
| 69 typedef SkShader INHERITED; | 72 typedef SkShader INHERITED; |
| 70 }; | 73 }; |
| 71 | 74 |
| 72 #endif | 75 #endif |
| OLD | NEW |