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

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

Issue 283273002: remove unused (by clients) SkUnitMapper (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: fix legacy call 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 | « include/core/SkReadBuffer.h ('k') | include/core/SkUnitMapper.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 * Copyright 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
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 8
9 #ifndef SkShader_DEFINED 9 #ifndef SkShader_DEFINED
10 #define SkShader_DEFINED 10 #define SkShader_DEFINED
11 11
12 #include "SkBitmap.h" 12 #include "SkBitmap.h"
13 #include "SkFlattenable.h" 13 #include "SkFlattenable.h"
14 #include "SkMask.h" 14 #include "SkMask.h"
15 #include "SkMatrix.h" 15 #include "SkMatrix.h"
16 #include "SkPaint.h" 16 #include "SkPaint.h"
17 17
18 class SkPath; 18 class SkPath;
19 class SkPicture; 19 class SkPicture;
20 class SkXfermode; 20 class SkXfermode;
21 class GrContext; 21 class GrContext;
22 class GrEffectRef; 22 class GrEffectRef;
23 23
24 #ifdef SK_SUPPORT_LEGACY_DEADUNITMAPPERTYPE
25 class SkDeadUnitMapperType;
26 #endif
27
24 /** \class SkShader 28 /** \class SkShader
25 * 29 *
26 * Shaders specify the source color(s) for what is being drawn. If a paint 30 * Shaders specify the source color(s) for what is being drawn. If a paint
27 * has no shader, then the paint's color is used. If the paint has a 31 * has no shader, then the paint's color is used. If the paint has a
28 * shader, then the shader's color(s) are use instead, but they are 32 * shader, then the shader's color(s) are use instead, but they are
29 * modulated by the paint's alpha. This makes it easy to create a shader 33 * modulated by the paint's alpha. This makes it easy to create a shader
30 * once (e.g. bitmap tiling or gradient) and then change its transparency 34 * once (e.g. bitmap tiling or gradient) and then change its transparency
31 * w/o having to modify the original shader... only the paint's alpha needs 35 * w/o having to modify the original shader... only the paint's alpha needs
32 * to be modified. 36 * to be modified.
33 */ 37 */
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 */ 465 */
462 virtual Context* onCreateContext(const ContextRec&, void* storage) const; 466 virtual Context* onCreateContext(const ContextRec&, void* storage) const;
463 467
464 private: 468 private:
465 SkMatrix fLocalMatrix; 469 SkMatrix fLocalMatrix;
466 470
467 typedef SkFlattenable INHERITED; 471 typedef SkFlattenable INHERITED;
468 }; 472 };
469 473
470 #endif 474 #endif
OLDNEW
« no previous file with comments | « include/core/SkReadBuffer.h ('k') | include/core/SkUnitMapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698