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

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

Issue 287063009: Revert of remove unused (by clients) SkUnitMapper (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 | « 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
28 /** \class SkShader 24 /** \class SkShader
29 * 25 *
30 * Shaders specify the source color(s) for what is being drawn. If a paint 26 * Shaders specify the source color(s) for what is being drawn. If a paint
31 * has no shader, then the paint's color is used. If the paint has a 27 * has no shader, then the paint's color is used. If the paint has a
32 * shader, then the shader's color(s) are use instead, but they are 28 * shader, then the shader's color(s) are use instead, but they are
33 * modulated by the paint's alpha. This makes it easy to create a shader 29 * modulated by the paint's alpha. This makes it easy to create a shader
34 * once (e.g. bitmap tiling or gradient) and then change its transparency 30 * once (e.g. bitmap tiling or gradient) and then change its transparency
35 * w/o having to modify the original shader... only the paint's alpha needs 31 * w/o having to modify the original shader... only the paint's alpha needs
36 * to be modified. 32 * to be modified.
37 */ 33 */
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 */ 461 */
466 virtual Context* onCreateContext(const ContextRec&, void* storage) const; 462 virtual Context* onCreateContext(const ContextRec&, void* storage) const;
467 463
468 private: 464 private:
469 SkMatrix fLocalMatrix; 465 SkMatrix fLocalMatrix;
470 466
471 typedef SkFlattenable INHERITED; 467 typedef SkFlattenable INHERITED;
472 }; 468 };
473 469
474 #endif 470 #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