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

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

Issue 197763008: Allow toString capability to be toggled independent of developer mode (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: remove gyp changes Created 6 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 | Annotate | Revision Log
« no previous file with comments | « include/core/SkColorFilter.h ('k') | include/core/SkComposeShader.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 30 matching lines...) Expand all
41 virtual void shadeSpan16(int x, int y, uint16_t span[], int count) SK_OVERRI DE; 41 virtual void shadeSpan16(int x, int y, uint16_t span[], int count) SK_OVERRI DE;
42 virtual void shadeSpanAlpha(int x, int y, uint8_t alpha[], int count) SK_OVE RRIDE; 42 virtual void shadeSpanAlpha(int x, int y, uint8_t alpha[], int count) SK_OVE RRIDE;
43 43
44 // we return false for this, use asAGradient 44 // we return false for this, use asAGradient
45 virtual BitmapType asABitmap(SkBitmap* outTexture, 45 virtual BitmapType asABitmap(SkBitmap* outTexture,
46 SkMatrix* outMatrix, 46 SkMatrix* outMatrix,
47 TileMode xy[2]) const SK_OVERRIDE; 47 TileMode xy[2]) const SK_OVERRIDE;
48 48
49 virtual GradientType asAGradient(GradientInfo* info) const SK_OVERRIDE; 49 virtual GradientType asAGradient(GradientInfo* info) const SK_OVERRIDE;
50 50
51 SK_DEVELOPER_TO_STRING() 51 SK_TO_STRING_OVERRIDE()
52 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkColorShader) 52 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkColorShader)
53 53
54 protected: 54 protected:
55 SkColorShader(SkReadBuffer&); 55 SkColorShader(SkReadBuffer&);
56 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; 56 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE;
57 57
58 private: 58 private:
59 59
60 SkColor fColor; // ignored if fInheritColor is true 60 SkColor fColor; // ignored if fInheritColor is true
61 SkPMColor fPMColor; // cached after setContext() 61 SkPMColor fPMColor; // cached after setContext()
62 uint32_t fFlags; // cached after setContext() 62 uint32_t fFlags; // cached after setContext()
63 uint16_t fColor16; // cached after setContext() 63 uint16_t fColor16; // cached after setContext()
64 SkBool8 fInheritColor; 64 SkBool8 fInheritColor;
65 65
66 typedef SkShader INHERITED; 66 typedef SkShader INHERITED;
67 }; 67 };
68 68
69 #endif 69 #endif
OLDNEW
« no previous file with comments | « include/core/SkColorFilter.h ('k') | include/core/SkComposeShader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698