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

Side by Side Diff: include/utils/SkLuaCanvas.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 | « include/utils/SkDumpCanvas.h ('k') | include/utils/SkNWayCanvas.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 2013 Google Inc. 2 * Copyright 2013 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 SkLuaCanvas_DEFINED 8 #ifndef SkLuaCanvas_DEFINED
9 #define SkLuaCanvas_DEFINED 9 #define SkLuaCanvas_DEFINED
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 void onDrawRRect(const SkRRect&, const SkPaint&) override; 47 void onDrawRRect(const SkRRect&, const SkPaint&) override;
48 void onDrawPath(const SkPath&, const SkPaint&) override; 48 void onDrawPath(const SkPath&, const SkPaint&) override;
49 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain t*) override; 49 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain t*) override;
50 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst, const SkPaint*, 50 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst, const SkPaint*,
51 SrcRectConstraint) override; 51 SrcRectConstraint) override;
52 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint* ) override; 52 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint* ) override;
53 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, 53 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst,
54 const SkPaint*, SrcRectConstraint) override; 54 const SkPaint*, SrcRectConstraint) override;
55 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst, 55 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst,
56 const SkPaint*) override; 56 const SkPaint*) override;
57 void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint*) overri de;
57 void onDrawVertices(VertexMode vmode, int vertexCount, 58 void onDrawVertices(VertexMode vmode, int vertexCount,
58 const SkPoint vertices[], const SkPoint texs[], 59 const SkPoint vertices[], const SkPoint texs[],
59 const SkColor colors[], SkXfermode* xmode, 60 const SkColor colors[], SkXfermode* xmode,
60 const uint16_t indices[], int indexCount, 61 const uint16_t indices[], int indexCount,
61 const SkPaint&) override; 62 const SkPaint&) override;
62 63
63 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override; 64 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override;
64 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override; 65 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override;
65 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override; 66 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override;
66 void onClipRegion(const SkRegion&, SkRegion::Op) override; 67 void onClipRegion(const SkRegion&, SkRegion::Op) override;
67 68
68 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri de; 69 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri de;
69 70
70 private: 71 private:
71 lua_State* fL; 72 lua_State* fL;
72 SkString fFunc; 73 SkString fFunc;
73 74
74 void sendverb(const char verb[]); 75 void sendverb(const char verb[]);
75 76
76 typedef SkCanvas INHERITED; 77 typedef SkCanvas INHERITED;
77 }; 78 };
78 79
79 #endif 80 #endif
OLDNEW
« no previous file with comments | « include/utils/SkDumpCanvas.h ('k') | include/utils/SkNWayCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698