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

Side by Side Diff: include/utils/SkDeferredCanvas.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 | « include/core/SkDevice.h ('k') | include/utils/SkDumpCanvas.h » ('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 2012 Google Inc. 2 * Copyright 2012 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 SkDeferredCanvas_DEFINED 8 #ifndef SkDeferredCanvas_DEFINED
9 #define SkDeferredCanvas_DEFINED 9 #define SkDeferredCanvas_DEFINED
10 10
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 const SkPaint& paint) override; 167 const SkPaint& paint) override;
168 168
169 void onDrawPaint(const SkPaint&) override; 169 void onDrawPaint(const SkPaint&) override;
170 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain t&) override; 170 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain t&) override;
171 void onDrawRect(const SkRect&, const SkPaint&) override; 171 void onDrawRect(const SkRect&, const SkPaint&) override;
172 void onDrawOval(const SkRect&, const SkPaint&) override; 172 void onDrawOval(const SkRect&, const SkPaint&) override;
173 void onDrawRRect(const SkRRect&, const SkPaint&) override; 173 void onDrawRRect(const SkRRect&, const SkPaint&) override;
174 void onDrawPath(const SkPath&, const SkPaint&) override; 174 void onDrawPath(const SkPath&, const SkPaint&) override;
175 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain t*) override; 175 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain t*) override;
176 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst, const SkPaint*, 176 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst, const SkPaint*,
177 DrawBitmapRectFlags flags) override; 177 SK_VIRTUAL_CONSTRAINT_TYPE) override;
178 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint* ) override; 178 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint* ) override;
179 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, 179 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst,
180 const SkPaint*) override; 180 const SkPaint* SRC_RECT_CONSTRAINT_PARAM(constraint)) o verride;
181 void onDrawImageNine(const SkImage*, const SkIRect& center, const SkRect& ds t, 181 void onDrawImageNine(const SkImage*, const SkIRect& center, const SkRect& ds t,
182 const SkPaint*) override; 182 const SkPaint*) override;
183 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst, 183 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst,
184 const SkPaint*) override; 184 const SkPaint*) override;
185 void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint*) overri de; 185 void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint*) overri de;
186 void onDrawVertices(VertexMode vmode, int vertexCount, 186 void onDrawVertices(VertexMode vmode, int vertexCount,
187 const SkPoint vertices[], const SkPoint texs[], 187 const SkPoint vertices[], const SkPoint texs[],
188 const SkColor colors[], SkXfermode* xmode, 188 const SkColor colors[], SkXfermode* xmode,
189 const uint16_t indices[], int indexCount, 189 const uint16_t indices[], int indexCount,
190 const SkPaint&) override; 190 const SkPaint&) override;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 252
253 mutable SkISize fCachedCanvasSize; 253 mutable SkISize fCachedCanvasSize;
254 mutable bool fCachedCanvasSizeDirty; 254 mutable bool fCachedCanvasSizeDirty;
255 255
256 friend class SkDeferredCanvasTester; // for unit testing 256 friend class SkDeferredCanvasTester; // for unit testing
257 typedef SkCanvas INHERITED; 257 typedef SkCanvas INHERITED;
258 }; 258 };
259 259
260 260
261 #endif 261 #endif
OLDNEW
« no previous file with comments | « include/core/SkDevice.h ('k') | include/utils/SkDumpCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698