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

Side by Side Diff: include/utils/SkDumpCanvas.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/utils/SkDeferredCanvas.h ('k') | include/utils/SkLuaCanvas.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 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 #ifndef SkDumpCanvas_DEFINED 8 #ifndef SkDumpCanvas_DEFINED
9 #define SkDumpCanvas_DEFINED 9 #define SkDumpCanvas_DEFINED
10 10
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 const SkPaint& paint) override; 95 const SkPaint& paint) override;
96 96
97 void onDrawPaint(const SkPaint&) override; 97 void onDrawPaint(const SkPaint&) override;
98 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain t&) override; 98 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain t&) override;
99 void onDrawRect(const SkRect&, const SkPaint&) override; 99 void onDrawRect(const SkRect&, const SkPaint&) override;
100 void onDrawOval(const SkRect&, const SkPaint&) override; 100 void onDrawOval(const SkRect&, const SkPaint&) override;
101 void onDrawRRect(const SkRRect&, const SkPaint&) override; 101 void onDrawRRect(const SkRRect&, const SkPaint&) override;
102 void onDrawPath(const SkPath&, const SkPaint&) override; 102 void onDrawPath(const SkPath&, const SkPaint&) override;
103 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain t*) override; 103 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain t*) override;
104 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst, const SkPaint*, 104 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst, const SkPaint*,
105 DrawBitmapRectFlags flags) override; 105 SK_VIRTUAL_CONSTRAINT_TYPE) override;
106 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint* ) override; 106 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint* ) override;
107 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, 107 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst,
108 const SkPaint*) override; 108 const SkPaint* SRC_RECT_CONSTRAINT_PARAM(constraint)) o verride;
109 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst, 109 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst,
110 const SkPaint*) override; 110 const SkPaint*) override;
111 void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint*) overri de; 111 void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint*) overri de;
112 void onDrawVertices(VertexMode vmode, int vertexCount, 112 void onDrawVertices(VertexMode vmode, int vertexCount,
113 const SkPoint vertices[], const SkPoint texs[], 113 const SkPoint vertices[], const SkPoint texs[],
114 const SkColor colors[], SkXfermode* xmode, 114 const SkColor colors[], SkXfermode* xmode,
115 const uint16_t indices[], int indexCount, 115 const uint16_t indices[], int indexCount,
116 const SkPaint&) override; 116 const SkPaint&) override;
117 117
118 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override; 118 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 public: 158 public:
159 SkDebugfDumper(); 159 SkDebugfDumper();
160 160
161 private: 161 private:
162 typedef SkFormatDumper INHERITED; 162 typedef SkFormatDumper INHERITED;
163 }; 163 };
164 164
165 #endif 165 #endif
166 166
167 #endif 167 #endif
OLDNEW
« no previous file with comments | « include/utils/SkDeferredCanvas.h ('k') | include/utils/SkLuaCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698