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

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

Issue 372053003: Revert of Make GrDrawState and GrPaint take GrEffect* instead of GrEffectRef*. (Closed) Base URL: https://skia.googlesource.com/skia.git@no_ref
Patch Set: Created 6 years, 5 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 | « include/core/SkColorFilter.h ('k') | include/core/SkImageFilter.h » ('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 /* 2 /*
3 * Copyright 2007 The Android Open Source Project 3 * Copyright 2007 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkColorShader_DEFINED 10 #ifndef SkColorShader_DEFINED
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 // we return false for this, use asAGradient 52 // we return false for this, use asAGradient
53 virtual BitmapType asABitmap(SkBitmap* outTexture, 53 virtual BitmapType asABitmap(SkBitmap* outTexture,
54 SkMatrix* outMatrix, 54 SkMatrix* outMatrix,
55 TileMode xy[2]) const SK_OVERRIDE; 55 TileMode xy[2]) const SK_OVERRIDE;
56 56
57 virtual GradientType asAGradient(GradientInfo* info) const SK_OVERRIDE; 57 virtual GradientType asAGradient(GradientInfo* info) const SK_OVERRIDE;
58 58
59 virtual bool asNewEffect(GrContext* context, const SkPaint& paint, 59 virtual bool asNewEffect(GrContext* context, const SkPaint& paint,
60 const SkMatrix* localMatrix, GrColor* grColor, 60 const SkMatrix* localMatrix, GrColor* grColor,
61 GrEffect** grEffect) const SK_OVERRIDE; 61 GrEffectRef** grEffect) const SK_OVERRIDE;
62 62
63 SK_TO_STRING_OVERRIDE() 63 SK_TO_STRING_OVERRIDE()
64 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkColorShader) 64 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkColorShader)
65 65
66 protected: 66 protected:
67 SkColorShader(SkReadBuffer&); 67 SkColorShader(SkReadBuffer&);
68 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; 68 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE;
69 virtual Context* onCreateContext(const ContextRec&, void* storage) const SK_ OVERRIDE; 69 virtual Context* onCreateContext(const ContextRec&, void* storage) const SK_ OVERRIDE;
70 70
71 private: 71 private:
72 SkColor fColor; // ignored if fInheritColor is true 72 SkColor fColor; // ignored if fInheritColor is true
73 73
74 typedef SkShader INHERITED; 74 typedef SkShader INHERITED;
75 }; 75 };
76 76
77 #endif 77 #endif
OLDNEW
« no previous file with comments | « include/core/SkColorFilter.h ('k') | include/core/SkImageFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698