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

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

Issue 1228083004: add src-rect-constraint to drawImageRect (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years, 5 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 SkXfermode::Mode, const SkRect*, const SkPaint*) override; 175 SkXfermode::Mode, const SkRect*, const SkPaint*) override;
176 176
177 void onDrawPaint(const SkPaint&) override; 177 void onDrawPaint(const SkPaint&) override;
178 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain t&) override; 178 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain t&) override;
179 void onDrawRect(const SkRect&, const SkPaint&) override; 179 void onDrawRect(const SkRect&, const SkPaint&) override;
180 void onDrawOval(const SkRect&, const SkPaint&) override; 180 void onDrawOval(const SkRect&, const SkPaint&) override;
181 void onDrawRRect(const SkRRect&, const SkPaint&) override; 181 void onDrawRRect(const SkRRect&, const SkPaint&) override;
182 void onDrawPath(const SkPath&, const SkPaint&) override; 182 void onDrawPath(const SkPath&, const SkPaint&) override;
183 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain t*) override; 183 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain t*) override;
184 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst, const SkPaint*, 184 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst, const SkPaint*,
185 DrawBitmapRectFlags flags) override; 185 SK_VIRTUAL_CONSTRAINT_TYPE) override;
186 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint* ) override; 186 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint* ) override;
187 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, 187 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst,
188 const SkPaint*) override; 188 const SkPaint* SRC_RECT_CONSTRAINT_PARAM(constraint)) o verride;
189 void onDrawImageNine(const SkImage*, const SkIRect& center, const SkRect& ds t, 189 void onDrawImageNine(const SkImage*, const SkIRect& center, const SkRect& ds t,
190 const SkPaint*) override; 190 const SkPaint*) override;
191 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst, 191 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst,
192 const SkPaint*) override; 192 const SkPaint*) override;
193 void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint*) overri de; 193 void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint*) overri de;
194 void onDrawVertices(VertexMode vmode, int vertexCount, 194 void onDrawVertices(VertexMode vmode, int vertexCount,
195 const SkPoint vertices[], const SkPoint texs[], 195 const SkPoint vertices[], const SkPoint texs[],
196 const SkColor colors[], SkXfermode* xmode, 196 const SkColor colors[], SkXfermode* xmode,
197 const uint16_t indices[], int indexCount, 197 const uint16_t indices[], int indexCount,
198 const SkPaint&) override; 198 const SkPaint&) override;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 236
237 uint32_t fRecordFlags; 237 uint32_t fRecordFlags;
238 int fInitialSaveCount; 238 int fInitialSaveCount;
239 239
240 friend class SkPictureData; // for SkPictureData's SkPictureRecord-based c onstructor 240 friend class SkPictureData; // for SkPictureData's SkPictureRecord-based c onstructor
241 241
242 typedef SkCanvas INHERITED; 242 typedef SkCanvas INHERITED;
243 }; 243 };
244 244
245 #endif 245 #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