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

Side by Side Diff: src/animator/SkDrawGradient.h

Issue 288343009: Remove unused (by clients) SkUnitMapper (https://codereview.chromium.org/283273002/) (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: SK_SUPPORT_LEGACY_DEADUNITMAPPERTYPE is unneeded Created 6 years, 7 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 | « samplecode/SampleVertices.cpp ('k') | src/animator/SkDrawGradient.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 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 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 SkDrawGradient_DEFINED 10 #ifndef SkDrawGradient_DEFINED
11 #define SkDrawGradient_DEFINED 11 #define SkDrawGradient_DEFINED
12 12
13 #include "SkDrawColor.h" 13 #include "SkDrawColor.h"
14 #include "SkDrawShader.h" 14 #include "SkDrawShader.h"
15 #include "SkIntArray.h" 15 #include "SkIntArray.h"
16 16
17 class SkUnitMapper;
18
19 class SkDrawGradient : public SkDrawShader { 17 class SkDrawGradient : public SkDrawShader {
20 DECLARE_PRIVATE_MEMBER_INFO(DrawGradient); 18 DECLARE_PRIVATE_MEMBER_INFO(DrawGradient);
21 SkDrawGradient(); 19 SkDrawGradient();
22 virtual ~SkDrawGradient(); 20 virtual ~SkDrawGradient();
23 virtual bool addChild(SkAnimateMaker& , SkDisplayable* child) SK_OVERRIDE; 21 virtual bool addChild(SkAnimateMaker& , SkDisplayable* child) SK_OVERRIDE;
24 #ifdef SK_DUMP_ENABLED 22 #ifdef SK_DUMP_ENABLED
25 virtual void dumpRest(SkAnimateMaker*); 23 virtual void dumpRest(SkAnimateMaker*);
26 #endif 24 #endif
27 virtual void onEndElement(SkAnimateMaker& ); 25 virtual void onEndElement(SkAnimateMaker& );
28 protected: 26 protected:
29 SkTDScalarArray offsets; 27 SkTDScalarArray offsets;
30 SkString unitMapper; 28 SkString unitMapper;
31 SkTDColorArray fColors; 29 SkTDColorArray fColors;
32 SkTDDrawColorArray fDrawColors; 30 SkTDDrawColorArray fDrawColors;
33 SkUnitMapper* fUnitMapper;
34 int addPrelude(); 31 int addPrelude();
35 private: 32 private:
36 typedef SkDrawShader INHERITED; 33 typedef SkDrawShader INHERITED;
37 }; 34 };
38 35
39 class SkDrawLinearGradient : public SkDrawGradient { 36 class SkDrawLinearGradient : public SkDrawGradient {
40 DECLARE_MEMBER_INFO(DrawLinearGradient); 37 DECLARE_MEMBER_INFO(DrawLinearGradient);
41 SkDrawLinearGradient(); 38 SkDrawLinearGradient();
42 virtual void onEndElement(SkAnimateMaker& ); 39 virtual void onEndElement(SkAnimateMaker& );
43 #ifdef SK_DUMP_ENABLED 40 #ifdef SK_DUMP_ENABLED
(...skipping 14 matching lines...) Expand all
58 #endif 55 #endif
59 virtual SkShader* getShader(); 56 virtual SkShader* getShader();
60 protected: 57 protected:
61 SkPoint center; 58 SkPoint center;
62 SkScalar radius; 59 SkScalar radius;
63 private: 60 private:
64 typedef SkDrawGradient INHERITED; 61 typedef SkDrawGradient INHERITED;
65 }; 62 };
66 63
67 #endif // SkDrawGradient_DEFINED 64 #endif // SkDrawGradient_DEFINED
OLDNEW
« no previous file with comments | « samplecode/SampleVertices.cpp ('k') | src/animator/SkDrawGradient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698