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

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

Issue 835913002: Revert of 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;
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
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
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