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

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

Issue 296823008: Revert of Remove unused (by clients) SkUnitMapper (https://codereview.chromium.org/283273002/) (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: 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
17 class SkDrawGradient : public SkDrawShader { 19 class SkDrawGradient : public SkDrawShader {
18 DECLARE_PRIVATE_MEMBER_INFO(DrawGradient); 20 DECLARE_PRIVATE_MEMBER_INFO(DrawGradient);
19 SkDrawGradient(); 21 SkDrawGradient();
20 virtual ~SkDrawGradient(); 22 virtual ~SkDrawGradient();
21 virtual bool addChild(SkAnimateMaker& , SkDisplayable* child) SK_OVERRIDE; 23 virtual bool addChild(SkAnimateMaker& , SkDisplayable* child) SK_OVERRIDE;
22 #ifdef SK_DUMP_ENABLED 24 #ifdef SK_DUMP_ENABLED
23 virtual void dumpRest(SkAnimateMaker*); 25 virtual void dumpRest(SkAnimateMaker*);
24 #endif 26 #endif
25 virtual void onEndElement(SkAnimateMaker& ); 27 virtual void onEndElement(SkAnimateMaker& );
26 protected: 28 protected:
27 SkTDScalarArray offsets; 29 SkTDScalarArray offsets;
28 SkString unitMapper; 30 SkString unitMapper;
29 SkTDColorArray fColors; 31 SkTDColorArray fColors;
30 SkTDDrawColorArray fDrawColors; 32 SkTDDrawColorArray fDrawColors;
33 SkUnitMapper* fUnitMapper;
31 int addPrelude(); 34 int addPrelude();
32 private: 35 private:
33 typedef SkDrawShader INHERITED; 36 typedef SkDrawShader INHERITED;
34 }; 37 };
35 38
36 class SkDrawLinearGradient : public SkDrawGradient { 39 class SkDrawLinearGradient : public SkDrawGradient {
37 DECLARE_MEMBER_INFO(DrawLinearGradient); 40 DECLARE_MEMBER_INFO(DrawLinearGradient);
38 SkDrawLinearGradient(); 41 SkDrawLinearGradient();
39 virtual void onEndElement(SkAnimateMaker& ); 42 virtual void onEndElement(SkAnimateMaker& );
40 #ifdef SK_DUMP_ENABLED 43 #ifdef SK_DUMP_ENABLED
(...skipping 14 matching lines...) Expand all
55 #endif 58 #endif
56 virtual SkShader* getShader(); 59 virtual SkShader* getShader();
57 protected: 60 protected:
58 SkPoint center; 61 SkPoint center;
59 SkScalar radius; 62 SkScalar radius;
60 private: 63 private:
61 typedef SkDrawGradient INHERITED; 64 typedef SkDrawGradient INHERITED;
62 }; 65 };
63 66
64 #endif // SkDrawGradient_DEFINED 67 #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