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

Side by Side Diff: include/utils/SkLuaCanvas.h

Issue 174593003: override new virtual onDrawDRRect in util canvas subclasses (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 10 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/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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 const SkPath& path, const SkMatrix* matrix, 65 const SkPath& path, const SkMatrix* matrix,
66 const SkPaint& paint) SK_OVERRIDE; 66 const SkPaint& paint) SK_OVERRIDE;
67 virtual void drawPicture(SkPicture&) SK_OVERRIDE; 67 virtual void drawPicture(SkPicture&) SK_OVERRIDE;
68 virtual void drawVertices(VertexMode vmode, int vertexCount, 68 virtual void drawVertices(VertexMode vmode, int vertexCount,
69 const SkPoint vertices[], const SkPoint texs[], 69 const SkPoint vertices[], const SkPoint texs[],
70 const SkColor colors[], SkXfermode* xmode, 70 const SkColor colors[], SkXfermode* xmode,
71 const uint16_t indices[], int indexCount, 71 const uint16_t indices[], int indexCount,
72 const SkPaint& paint) SK_OVERRIDE; 72 const SkPaint& paint) SK_OVERRIDE;
73 virtual void drawData(const void* data, size_t length) SK_OVERRIDE; 73 virtual void drawData(const void* data, size_t length) SK_OVERRIDE;
74 74
75 protected:
76 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK _OVERRIDE;
77
75 private: 78 private:
76 lua_State* fL; 79 lua_State* fL;
77 SkString fFunc; 80 SkString fFunc;
78 81
79 void sendverb(const char verb[]); 82 void sendverb(const char verb[]);
80 83
81 typedef SkCanvas INHERITED; 84 typedef SkCanvas INHERITED;
82 }; 85 };
83 86
84 #endif 87 #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