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

Side by Side Diff: src/utils/android/SkAndroidSDKCanvas.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/utils/SkPaintFilterCanvas.cpp ('k') | src/utils/android/SkAndroidSDKCanvas.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 2015 Google Inc. 2 * Copyright 2015 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 SkAndroidSDKCanvas_DEFINED 8 #ifndef SkAndroidSDKCanvas_DEFINED
9 #define SkAndroidSDKCanvas_DEFINED 9 #define SkAndroidSDKCanvas_DEFINED
10 10
(...skipping 25 matching lines...) Expand all
36 void onDrawPaint(const SkPaint& paint) override; 36 void onDrawPaint(const SkPaint& paint) override;
37 void onDrawPoints(PointMode pMode, size_t count, const SkPoint pts[], 37 void onDrawPoints(PointMode pMode, size_t count, const SkPoint pts[],
38 const SkPaint& paint) override; 38 const SkPaint& paint) override;
39 void onDrawOval(const SkRect& r, const SkPaint& paint) override; 39 void onDrawOval(const SkRect& r, const SkPaint& paint) override;
40 void onDrawRect(const SkRect& r, const SkPaint& paint) override; 40 void onDrawRect(const SkRect& r, const SkPaint& paint) override;
41 void onDrawRRect(const SkRRect& r, const SkPaint& paint) override; 41 void onDrawRRect(const SkRRect& r, const SkPaint& paint) override;
42 void onDrawPath(const SkPath& path, const SkPaint& paint) override; 42 void onDrawPath(const SkPath& path, const SkPaint& paint) override;
43 void onDrawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, 43 void onDrawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top,
44 const SkPaint* paint) override; 44 const SkPaint* paint) override;
45 void onDrawBitmapRect(const SkBitmap& bitmap, const SkRect* src, const SkRec t& dst, 45 void onDrawBitmapRect(const SkBitmap& bitmap, const SkRect* src, const SkRec t& dst,
46 const SkPaint* paint, DrawBitmapRectFlags flags) overr ide; 46 const SkPaint* paint, SK_VIRTUAL_CONSTRAINT_TYPE) over ride;
47 void onDrawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, 47 void onDrawBitmapNine(const SkBitmap& bitmap, const SkIRect& center,
48 const SkRect& dst, const SkPaint* paint) override; 48 const SkRect& dst, const SkPaint* paint) override;
49 void onDrawSprite(const SkBitmap& bitmap, int left, int top, 49 void onDrawSprite(const SkBitmap& bitmap, int left, int top,
50 const SkPaint* paint) override; 50 const SkPaint* paint) override;
51 void onDrawVertices(VertexMode vMode, int vertexCount, const SkPoint vertice s[], 51 void onDrawVertices(VertexMode vMode, int vertexCount, const SkPoint vertice s[],
52 const SkPoint texs[], const SkColor colors[], SkXfermode * xMode, 52 const SkPoint texs[], const SkColor colors[], SkXfermode * xMode,
53 const uint16_t indices[], int indexCount, 53 const uint16_t indices[], int indexCount,
54 const SkPaint& paint) override; 54 const SkPaint& paint) override;
55 55
56 void onDrawDRRect(const SkRRect& outer, const SkRRect& inner, 56 void onDrawDRRect(const SkRRect& outer, const SkRRect& inner,
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override; 98 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override;
99 void onClipRegion(const SkRegion&, SkRegion::Op) override; 99 void onClipRegion(const SkRegion&, SkRegion::Op) override;
100 void onDiscard() override; 100 void onDiscard() override;
101 101
102 protected: 102 protected:
103 SkCanvas* fProxyTarget; 103 SkCanvas* fProxyTarget;
104 }; 104 };
105 105
106 #endif // SkAndroidSDKCanvas_DEFINED 106 #endif // SkAndroidSDKCanvas_DEFINED
107 107
OLDNEW
« no previous file with comments | « src/utils/SkPaintFilterCanvas.cpp ('k') | src/utils/android/SkAndroidSDKCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698