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

Side by Side Diff: src/core/SkPictureRecord.h

Issue 1529803004: Revert of remove drawSprite from canvas (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain t*) override; 185 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain t*) override;
186 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst, const SkPaint*, 186 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst, const SkPaint*,
187 SrcRectConstraint) override; 187 SrcRectConstraint) override;
188 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint* ) override; 188 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint* ) override;
189 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, 189 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst,
190 const SkPaint*, SrcRectConstraint) override; 190 const SkPaint*, SrcRectConstraint) override;
191 void onDrawImageNine(const SkImage*, const SkIRect& center, const SkRect& ds t, 191 void onDrawImageNine(const SkImage*, const SkIRect& center, const SkRect& ds t,
192 const SkPaint*) override; 192 const SkPaint*) override;
193 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst, 193 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst,
194 const SkPaint*) override; 194 const SkPaint*) override;
195 void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint*) overri de;
195 void onDrawVertices(VertexMode vmode, int vertexCount, 196 void onDrawVertices(VertexMode vmode, int vertexCount,
196 const SkPoint vertices[], const SkPoint texs[], 197 const SkPoint vertices[], const SkPoint texs[],
197 const SkColor colors[], SkXfermode* xmode, 198 const SkColor colors[], SkXfermode* xmode,
198 const uint16_t indices[], int indexCount, 199 const uint16_t indices[], int indexCount,
199 const SkPaint&) override; 200 const SkPaint&) override;
200 201
201 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override; 202 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override;
202 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override; 203 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override;
203 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override; 204 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override;
204 void onClipRegion(const SkRegion&, SkRegion::Op) override; 205 void onClipRegion(const SkRegion&, SkRegion::Op) override;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 242
242 uint32_t fRecordFlags; 243 uint32_t fRecordFlags;
243 int fInitialSaveCount; 244 int fInitialSaveCount;
244 245
245 friend class SkPictureData; // for SkPictureData's SkPictureRecord-based c onstructor 246 friend class SkPictureData; // for SkPictureData's SkPictureRecord-based c onstructor
246 247
247 typedef SkCanvas INHERITED; 248 typedef SkCanvas INHERITED;
248 }; 249 };
249 250
250 #endif 251 #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