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

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

Issue 2205273003: Add onDrawBitmapLattice(), avoid unnecessary bitmap->image copy (Closed) Base URL: https://skia.googlesource.com/skia.git@copypaste
Patch Set: Add support for SkLiteRecorder 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
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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 virtual void drawBitmapLattice(const SkDraw&, const SkBitmap&, const SkCanva s::Lattice&,
202 const SkRect& dst, const SkPaint&);
201 203
202 virtual void drawImage(const SkDraw&, const SkImage*, SkScalar x, SkScalar y , const SkPaint&); 204 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, 205 virtual void drawImageRect(const SkDraw&, const SkImage*, const SkRect* src, const SkRect& dst,
204 const SkPaint&, SkCanvas::SrcRectConstraint); 206 const SkPaint&, SkCanvas::SrcRectConstraint);
205 virtual void drawImageNine(const SkDraw&, const SkImage*, const SkIRect& cen ter, 207 virtual void drawImageNine(const SkDraw&, const SkImage*, const SkIRect& cen ter,
206 const SkRect& dst, const SkPaint&); 208 const SkRect& dst, const SkPaint&);
207 virtual void drawImageLattice(const SkDraw&, const SkImage*, const SkCanvas: :Lattice&, 209 virtual void drawImageLattice(const SkDraw&, const SkImage*, const SkCanvas: :Lattice&,
208 const SkRect& dst, const SkPaint&); 210 const SkRect& dst, const SkPaint&);
209 211
210 /** 212 /**
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 SkSurfaceProps fSurfaceProps; 373 SkSurfaceProps fSurfaceProps;
372 374
373 #ifdef SK_SUPPORT_LEGACY_ACCESSBITMAP 375 #ifdef SK_SUPPORT_LEGACY_ACCESSBITMAP
374 SkBitmap fLegacyBitmap; 376 SkBitmap fLegacyBitmap;
375 #endif 377 #endif
376 378
377 typedef SkRefCnt INHERITED; 379 typedef SkRefCnt INHERITED;
378 }; 380 };
379 381
380 #endif 382 #endif
OLDNEW
« no previous file with comments | « include/core/SkCanvas.h ('k') | src/core/SkCanvas.cpp » ('j') | src/core/SkLiteDL.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698