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

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

Issue 817723005: move remaining virtual draw methods to onDraw (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « include/core/SkCanvas.h ('k') | include/utils/SkDeferredCanvas.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 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
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
OLDNEW
« no previous file with comments | « include/core/SkCanvas.h ('k') | include/utils/SkDeferredCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698