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

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

Issue 1211583003: add drawImageNine (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: address comments from #9 Created 5 years, 6 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 void onDrawRect(const SkRect&, const SkPaint&) override; 181 void onDrawRect(const SkRect&, const SkPaint&) override;
182 void onDrawOval(const SkRect&, const SkPaint&) override; 182 void onDrawOval(const SkRect&, const SkPaint&) override;
183 void onDrawRRect(const SkRRect&, const SkPaint&) override; 183 void onDrawRRect(const SkRRect&, const SkPaint&) override;
184 void onDrawPath(const SkPath&, const SkPaint&) override; 184 void onDrawPath(const SkPath&, const SkPaint&) override;
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 DrawBitmapRectFlags flags) override; 187 DrawBitmapRectFlags flags) 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*) override; 190 const SkPaint*) override;
191 void onDrawImageNine(const SkImage*, const SkIRect& center, const SkRect& ds t,
192 const SkPaint*) override;
191 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst, 193 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst,
192 const SkPaint*) override; 194 const SkPaint*) override;
193 void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint*) overri de; 195 void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint*) overri de;
194 void onDrawVertices(VertexMode vmode, int vertexCount, 196 void onDrawVertices(VertexMode vmode, int vertexCount,
195 const SkPoint vertices[], const SkPoint texs[], 197 const SkPoint vertices[], const SkPoint texs[],
196 const SkColor colors[], SkXfermode* xmode, 198 const SkColor colors[], SkXfermode* xmode,
197 const uint16_t indices[], int indexCount, 199 const uint16_t indices[], int indexCount,
198 const SkPaint&) override; 200 const SkPaint&) override;
199 201
200 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override; 202 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 238
237 uint32_t fRecordFlags; 239 uint32_t fRecordFlags;
238 int fInitialSaveCount; 240 int fInitialSaveCount;
239 241
240 friend class SkPictureData; // for SkPictureData's SkPictureRecord-based c onstructor 242 friend class SkPictureData; // for SkPictureData's SkPictureRecord-based c onstructor
241 243
242 typedef SkCanvas INHERITED; 244 typedef SkCanvas INHERITED;
243 }; 245 };
244 246
245 #endif 247 #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