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

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

Issue 1530203002: Reland of move 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;
51 void onDrawVertices(VertexMode vMode, int vertexCount, const SkPoint vertice s[], 49 void onDrawVertices(VertexMode vMode, int vertexCount, const SkPoint vertice s[],
52 const SkPoint texs[], const SkColor colors[], SkXfermode * xMode, 50 const SkPoint texs[], const SkColor colors[], SkXfermode * xMode,
53 const uint16_t indices[], int indexCount, 51 const uint16_t indices[], int indexCount,
54 const SkPaint& paint) override; 52 const SkPaint& paint) override;
55 53
56 void onDrawDRRect(const SkRRect& outer, const SkRRect& inner, 54 void onDrawDRRect(const SkRRect& outer, const SkRRect& inner,
57 const SkPaint& paint) override; 55 const SkPaint& paint) override;
58 56
59 void onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y, 57 void onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y,
60 const SkPaint& paint) override; 58 const SkPaint& paint) override;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override; 101 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override;
104 void onClipRegion(const SkRegion&, SkRegion::Op) override; 102 void onClipRegion(const SkRegion&, SkRegion::Op) override;
105 void onDiscard() override; 103 void onDiscard() override;
106 104
107 protected: 105 protected:
108 SkCanvas* fProxyTarget; 106 SkCanvas* fProxyTarget;
109 }; 107 };
110 108
111 #endif // SkAndroidSDKCanvas_DEFINED 109 #endif // SkAndroidSDKCanvas_DEFINED
112 110
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