OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
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 #ifndef SkImage_DEFINED | 8 #ifndef SkImage_DEFINED |
9 #define SkImage_DEFINED | 9 #define SkImage_DEFINED |
10 | 10 |
11 #include "SkImageInfo.h" | 11 #include "SkImageInfo.h" |
12 #include "SkImageEncoder.h" | 12 #include "SkImageEncoder.h" |
13 #include "SkRefCnt.h" | 13 #include "SkRefCnt.h" |
14 #include "SkScalar.h" | 14 #include "SkScalar.h" |
15 #include "SkShader.h" | 15 #include "SkShader.h" |
16 | 16 |
17 class SkData; | 17 class SkData; |
18 class SkCanvas; | 18 class SkCanvas; |
19 class SkImageGenerator; | 19 class SkImageGenerator; |
20 class SkPaint; | 20 class SkPaint; |
| 21 class SkString; |
21 class SkSurface; | 22 class SkSurface; |
22 class SkSurfaceProps; | 23 class SkSurfaceProps; |
23 class GrContext; | 24 class GrContext; |
24 class GrTexture; | 25 class GrTexture; |
25 | 26 |
26 /** | 27 /** |
27 * SkImage is an abstraction for drawing a rectagle of pixels, though the | 28 * SkImage is an abstraction for drawing a rectagle of pixels, though the |
28 * particular type of image could be actually storing its data on the GPU, or | 29 * particular type of image could be actually storing its data on the GPU, or |
29 * as drawing commands (picture or PDF or otherwise), ready to be played back | 30 * as drawing commands (picture or PDF or otherwise), ready to be played back |
30 * into another canvas. | 31 * into another canvas. |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 * Draw the image, cropped to the src rect, to the dst rect of a canvas. | 158 * Draw the image, cropped to the src rect, to the dst rect of a canvas. |
158 * If src is larger than the bounds of the image, the rest of the image is | 159 * If src is larger than the bounds of the image, the rest of the image is |
159 * filled with transparent black pixels. | 160 * filled with transparent black pixels. |
160 * | 161 * |
161 * See SkCanvas::drawBitmapRectToRect for similar behavior. | 162 * See SkCanvas::drawBitmapRectToRect for similar behavior. |
162 */ | 163 */ |
163 void drawRect(SkCanvas*, const SkRect* src, const SkRect& dst, const SkPaint
*) const; | 164 void drawRect(SkCanvas*, const SkRect* src, const SkRect& dst, const SkPaint
*) const; |
164 }; | 165 }; |
165 | 166 |
166 #endif | 167 #endif |
OLD | NEW |