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

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

Issue 1810383004: allow more options for shader blitprocs (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: gcc hates my curlies Created 4 years, 9 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_PM4f.cpp ('k') | src/core/SkShader.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 18 matching lines...) Expand all
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: 38 protected:
39 BlitProc onChooseBlitProc(const SkImageInfo&, BlitState*) override; 39 bool onChooseBlitProcs(const SkImageInfo&, BlitState*) override;
40 40
41 private: 41 private:
42 SkPM4f fPM4f; 42 SkPM4f fPM4f;
43 SkPMColor fPMColor; 43 SkPMColor fPMColor;
44 uint32_t fFlags; 44 uint32_t fFlags;
45 45
46 typedef SkShader::Context INHERITED; 46 typedef SkShader::Context INHERITED;
47 }; 47 };
48 48
49 GradientType asAGradient(GradientInfo* info) const override; 49 GradientType asAGradient(GradientInfo* info) const override;
50 50
(...skipping 15 matching lines...) Expand all
66 return true; 66 return true;
67 } 67 }
68 68
69 private: 69 private:
70 SkColor fColor; 70 SkColor fColor;
71 71
72 typedef SkShader INHERITED; 72 typedef SkShader INHERITED;
73 }; 73 };
74 74
75 #endif 75 #endif
OLDNEW
« no previous file with comments | « src/core/SkBlitter_PM4f.cpp ('k') | src/core/SkShader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698