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

Side by Side Diff: src/effects/gradients/SkRadialGradient.h

Issue 2037413002: Add SkSourceGammaTreatment enum so we know how to create mips (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix DM compilation Created 4 years, 6 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/gradients/SkLinearGradient.cpp ('k') | src/effects/gradients/SkRadialGradient.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 2012 Google Inc. 2 * Copyright 2012 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 #ifndef SkRadialGradient_DEFINED 8 #ifndef SkRadialGradient_DEFINED
9 #define SkRadialGradient_DEFINED 9 #define SkRadialGradient_DEFINED
10 10
(...skipping 11 matching lines...) Expand all
22 22
23 private: 23 private:
24 typedef SkGradientShaderBase::GradientShaderBaseContext INHERITED; 24 typedef SkGradientShaderBase::GradientShaderBaseContext INHERITED;
25 }; 25 };
26 26
27 GradientType asAGradient(GradientInfo* info) const override; 27 GradientType asAGradient(GradientInfo* info) const override;
28 #if SK_SUPPORT_GPU 28 #if SK_SUPPORT_GPU
29 const GrFragmentProcessor* asFragmentProcessor(GrContext*, 29 const GrFragmentProcessor* asFragmentProcessor(GrContext*,
30 const SkMatrix& viewM, 30 const SkMatrix& viewM,
31 const SkMatrix*, 31 const SkMatrix*,
32 SkFilterQuality) const overri de; 32 SkFilterQuality,
33 SkSourceGammaTreatment) const override;
33 #endif 34 #endif
34 35
35 SK_TO_STRING_OVERRIDE() 36 SK_TO_STRING_OVERRIDE()
36 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkRadialGradient) 37 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkRadialGradient)
37 38
38 protected: 39 protected:
39 SkRadialGradient(SkReadBuffer& buffer); 40 SkRadialGradient(SkReadBuffer& buffer);
40 void flatten(SkWriteBuffer& buffer) const override; 41 void flatten(SkWriteBuffer& buffer) const override;
41 size_t onContextSize(const ContextRec&) const override; 42 size_t onContextSize(const ContextRec&) const override;
42 Context* onCreateContext(const ContextRec&, void* storage) const override; 43 Context* onCreateContext(const ContextRec&, void* storage) const override;
43 44
44 private: 45 private:
45 const SkPoint fCenter; 46 const SkPoint fCenter;
46 const SkScalar fRadius; 47 const SkScalar fRadius;
47 48
48 friend class SkGradientShader; 49 friend class SkGradientShader;
49 typedef SkGradientShaderBase INHERITED; 50 typedef SkGradientShaderBase INHERITED;
50 }; 51 };
51 52
52 #endif 53 #endif
OLDNEW
« no previous file with comments | « src/effects/gradients/SkLinearGradient.cpp ('k') | src/effects/gradients/SkRadialGradient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698