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

Side by Side Diff: src/effects/gradients/SkSweepGradient.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/SkRadialGradient.cpp ('k') | src/effects/gradients/SkSweepGradient.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 SkSweepGradient_DEFINED 8 #ifndef SkSweepGradient_DEFINED
9 #define SkSweepGradient_DEFINED 9 #define SkSweepGradient_DEFINED
10 10
(...skipping 12 matching lines...) Expand all
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 28
29 #if SK_SUPPORT_GPU 29 #if SK_SUPPORT_GPU
30 const GrFragmentProcessor* asFragmentProcessor(GrContext*, 30 const GrFragmentProcessor* asFragmentProcessor(GrContext*,
31 const SkMatrix& viewM, 31 const SkMatrix& viewM,
32 const SkMatrix*, 32 const SkMatrix*,
33 SkFilterQuality) const overri de; 33 SkFilterQuality,
34 SkSourceGammaTreatment) const override;
34 #endif 35 #endif
35 36
36 SK_TO_STRING_OVERRIDE() 37 SK_TO_STRING_OVERRIDE()
37 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkSweepGradient) 38 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkSweepGradient)
38 39
39 protected: 40 protected:
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 47
47 friend class SkGradientShader; 48 friend class SkGradientShader;
48 typedef SkGradientShaderBase INHERITED; 49 typedef SkGradientShaderBase INHERITED;
49 }; 50 };
50 51
51 #endif 52 #endif
OLDNEW
« no previous file with comments | « src/effects/gradients/SkRadialGradient.cpp ('k') | src/effects/gradients/SkSweepGradient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698