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

Side by Side Diff: src/core/SkPictureRecord.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 | « src/core/SkPicturePlayback.cpp ('k') | src/core/SkPictureRecord.cpp » ('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 2011 Google Inc. 2 * Copyright 2011 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 SkPictureRecord_DEFINED 8 #ifndef SkPictureRecord_DEFINED
9 #define SkPictureRecord_DEFINED 9 #define SkPictureRecord_DEFINED
10 10
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 void onDrawPaint(const SkPaint&) override; 187 void onDrawPaint(const SkPaint&) override;
188 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain t&) override; 188 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain t&) override;
189 void onDrawRect(const SkRect&, const SkPaint&) override; 189 void onDrawRect(const SkRect&, const SkPaint&) override;
190 void onDrawOval(const SkRect&, const SkPaint&) override; 190 void onDrawOval(const SkRect&, const SkPaint&) override;
191 void onDrawRRect(const SkRRect&, const SkPaint&) override; 191 void onDrawRRect(const SkRRect&, const SkPaint&) override;
192 void onDrawPath(const SkPath&, const SkPaint&) override; 192 void onDrawPath(const SkPath&, const SkPaint&) override;
193 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain t*) override; 193 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain t*) override;
194 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst, const SkPaint*, 194 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst, const SkPaint*,
195 SrcRectConstraint) override; 195 SrcRectConstraint) override;
196 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint* ) override; 196 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint* ) override;
197 void onDrawImageLattice(const SkImage*, const SkCanvas::Lattice& lattice, co nst SkRect& dst,
198 const SkPaint*) override;
197 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, 199 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst,
198 const SkPaint*, SrcRectConstraint) override; 200 const SkPaint*, SrcRectConstraint) override;
199 void onDrawImageNine(const SkImage*, const SkIRect& center, const SkRect& ds t, 201 void onDrawImageNine(const SkImage*, const SkIRect& center, const SkRect& ds t,
200 const SkPaint*) override; 202 const SkPaint*) override;
201 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst, 203 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst,
202 const SkPaint*) override; 204 const SkPaint*) override;
203 void onDrawVertices(VertexMode vmode, int vertexCount, 205 void onDrawVertices(VertexMode vmode, int vertexCount,
204 const SkPoint vertices[], const SkPoint texs[], 206 const SkPoint vertices[], const SkPoint texs[],
205 const SkColor colors[], SkXfermode* xmode, 207 const SkColor colors[], SkXfermode* xmode,
206 const uint16_t indices[], int indexCount, 208 const uint16_t indices[], int indexCount,
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 265
264 uint32_t fRecordFlags; 266 uint32_t fRecordFlags;
265 int fInitialSaveCount; 267 int fInitialSaveCount;
266 268
267 friend class SkPictureData; // for SkPictureData's SkPictureRecord-based c onstructor 269 friend class SkPictureData; // for SkPictureData's SkPictureRecord-based c onstructor
268 270
269 typedef SkCanvas INHERITED; 271 typedef SkCanvas INHERITED;
270 }; 272 };
271 273
272 #endif 274 #endif
OLDNEW
« no previous file with comments | « src/core/SkPicturePlayback.cpp ('k') | src/core/SkPictureRecord.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698