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

Side by Side Diff: src/utils/android/SkAndroidSDKCanvas.h

Issue 1529803004: Revert of remove drawSprite from canvas (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years 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 28 matching lines...) Expand all
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, SkCanvas::SrcRectConstraint) ove rride; 46 const SkPaint* paint, SkCanvas::SrcRectConstraint) ove rride;
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,
50 const SkPaint* paint) override;
49 void onDrawVertices(VertexMode vMode, int vertexCount, const SkPoint vertice s[], 51 void onDrawVertices(VertexMode vMode, int vertexCount, const SkPoint vertice s[],
50 const SkPoint texs[], const SkColor colors[], SkXfermode * xMode, 52 const SkPoint texs[], const SkColor colors[], SkXfermode * xMode,
51 const uint16_t indices[], int indexCount, 53 const uint16_t indices[], int indexCount,
52 const SkPaint& paint) override; 54 const SkPaint& paint) override;
53 55
54 void onDrawDRRect(const SkRRect& outer, const SkRRect& inner, 56 void onDrawDRRect(const SkRRect& outer, const SkRRect& inner,
55 const SkPaint& paint) override; 57 const SkPaint& paint) override;
56 58
57 void onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y, 59 void onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y,
58 const SkPaint& paint) override; 60 const SkPaint& paint) override;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override; 103 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override;
102 void onClipRegion(const SkRegion&, SkRegion::Op) override; 104 void onClipRegion(const SkRegion&, SkRegion::Op) override;
103 void onDiscard() override; 105 void onDiscard() override;
104 106
105 protected: 107 protected:
106 SkCanvas* fProxyTarget; 108 SkCanvas* fProxyTarget;
107 }; 109 };
108 110
109 #endif // SkAndroidSDKCanvas_DEFINED 111 #endif // SkAndroidSDKCanvas_DEFINED
110 112
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