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

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

Issue 1992283002: Add drawBitmapLattice() API (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rewrite picture impls Created 4 years, 4 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/private/SkRecords.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 2010 The Android Open Source Project 2 * Copyright 2010 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 #ifndef SkDevice_DEFINED 8 #ifndef SkDevice_DEFINED
9 #define SkDevice_DEFINED 9 #define SkDevice_DEFINED
10 10
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 190
191 /** 191 /**
192 * The default impl. will create a bitmap-shader from the bitmap, 192 * The default impl. will create a bitmap-shader from the bitmap,
193 * and call drawRect with it. 193 * and call drawRect with it.
194 */ 194 */
195 virtual void drawBitmapRect(const SkDraw&, const SkBitmap&, 195 virtual void drawBitmapRect(const SkDraw&, const SkBitmap&,
196 const SkRect* srcOrNull, const SkRect& dst, 196 const SkRect* srcOrNull, const SkRect& dst,
197 const SkPaint& paint, 197 const SkPaint& paint,
198 SkCanvas::SrcRectConstraint) = 0; 198 SkCanvas::SrcRectConstraint) = 0;
199 virtual void drawBitmapNine(const SkDraw&, const SkBitmap&, const SkIRect& c enter, 199 virtual void drawBitmapNine(const SkDraw&, const SkBitmap&, const SkIRect& c enter,
200 const SkRect& dst, const SkPaint&); 200 const SkRect& dst, const SkPaint&);
201 201
202 virtual void drawImage(const SkDraw&, const SkImage*, SkScalar x, SkScalar y , const SkPaint&); 202 virtual void drawImage(const SkDraw&, const SkImage*, SkScalar x, SkScalar y , const SkPaint&);
203 virtual void drawImageRect(const SkDraw&, const SkImage*, const SkRect* src, const SkRect& dst, 203 virtual void drawImageRect(const SkDraw&, const SkImage*, const SkRect* src, const SkRect& dst,
204 const SkPaint&, SkCanvas::SrcRectConstraint); 204 const SkPaint&, SkCanvas::SrcRectConstraint);
205 virtual void drawImageNine(const SkDraw&, const SkImage*, const SkIRect& cen ter, 205 virtual void drawImageNine(const SkDraw&, const SkImage*, const SkIRect& cen ter,
206 const SkRect& dst, const SkPaint&); 206 const SkRect& dst, const SkPaint&);
207 virtual void drawImageLattice(const SkDraw&, const SkImage*, const SkCanvas: :Lattice&,
208 const SkRect& dst, const SkPaint&);
207 209
208 /** 210 /**
209 * Does not handle text decoration. 211 * Does not handle text decoration.
210 * Decorations (underline and stike-thru) will be handled by SkCanvas. 212 * Decorations (underline and stike-thru) will be handled by SkCanvas.
211 */ 213 */
212 virtual void drawText(const SkDraw&, const void* text, size_t len, 214 virtual void drawText(const SkDraw&, const void* text, size_t len,
213 SkScalar x, SkScalar y, const SkPaint& paint) = 0; 215 SkScalar x, SkScalar y, const SkPaint& paint) = 0;
214 virtual void drawPosText(const SkDraw&, const void* text, size_t len, 216 virtual void drawPosText(const SkDraw&, const void* text, size_t len,
215 const SkScalar pos[], int scalarsPerPos, 217 const SkScalar pos[], int scalarsPerPos,
216 const SkPoint& offset, const SkPaint& paint) = 0; 218 const SkPoint& offset, const SkPaint& paint) = 0;
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 SkSurfaceProps fSurfaceProps; 371 SkSurfaceProps fSurfaceProps;
370 372
371 #ifdef SK_SUPPORT_LEGACY_ACCESSBITMAP 373 #ifdef SK_SUPPORT_LEGACY_ACCESSBITMAP
372 SkBitmap fLegacyBitmap; 374 SkBitmap fLegacyBitmap;
373 #endif 375 #endif
374 376
375 typedef SkRefCnt INHERITED; 377 typedef SkRefCnt INHERITED;
376 }; 378 };
377 379
378 #endif 380 #endif
OLDNEW
« no previous file with comments | « include/core/SkCanvas.h ('k') | include/private/SkRecords.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698