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; | |
22 class SkSurface; | 21 class SkSurface; |
23 class SkSurfaceProps; | 22 class SkSurfaceProps; |
24 class GrContext; | 23 class GrContext; |
25 class GrTexture; | 24 class GrTexture; |
26 | 25 |
27 /** | 26 /** |
28 * SkImage is an abstraction for drawing a rectagle of pixels, though the | 27 * SkImage is an abstraction for drawing a rectagle of pixels, though the |
29 * particular type of image could be actually storing its data on the GPU, or | 28 * particular type of image could be actually storing its data on the GPU, or |
30 * as drawing commands (picture or PDF or otherwise), ready to be played back | 29 * as drawing commands (picture or PDF or otherwise), ready to be played back |
31 * into another canvas. | 30 * into another canvas. |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 * Draw the image, cropped to the src rect, to the dst rect of a canvas. | 157 * Draw the image, cropped to the src rect, to the dst rect of a canvas. |
159 * If src is larger than the bounds of the image, the rest of the image is | 158 * If src is larger than the bounds of the image, the rest of the image is |
160 * filled with transparent black pixels. | 159 * filled with transparent black pixels. |
161 * | 160 * |
162 * See SkCanvas::drawBitmapRectToRect for similar behavior. | 161 * See SkCanvas::drawBitmapRectToRect for similar behavior. |
163 */ | 162 */ |
164 void drawRect(SkCanvas*, const SkRect* src, const SkRect& dst, const SkPaint
*) const; | 163 void drawRect(SkCanvas*, const SkRect* src, const SkRect& dst, const SkPaint
*) const; |
165 }; | 164 }; |
166 | 165 |
167 #endif | 166 #endif |
OLD | NEW |