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

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

Issue 463493002: SkCanvas::drawPatch param SkPoint[12] (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 4 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
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #ifndef SkNWayCanvas_DEFINED 9 #ifndef SkNWayCanvas_DEFINED
10 #define SkNWayCanvas_DEFINED 10 #define SkNWayCanvas_DEFINED
(...skipping 30 matching lines...) Expand all
41 virtual void drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, 41 virtual void drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center,
42 const SkRect& dst, 42 const SkRect& dst,
43 const SkPaint* paint = NULL) SK_OVERRIDE; 43 const SkPaint* paint = NULL) SK_OVERRIDE;
44 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, 44 virtual void drawSprite(const SkBitmap& bitmap, int left, int top,
45 const SkPaint*) SK_OVERRIDE; 45 const SkPaint*) SK_OVERRIDE;
46 virtual void drawVertices(VertexMode vmode, int vertexCount, 46 virtual void drawVertices(VertexMode vmode, int vertexCount,
47 const SkPoint vertices[], const SkPoint texs[], 47 const SkPoint vertices[], const SkPoint texs[],
48 const SkColor colors[], SkXfermode* xmode, 48 const SkColor colors[], SkXfermode* xmode,
49 const uint16_t indices[], int indexCount, 49 const uint16_t indices[], int indexCount,
50 const SkPaint&) SK_OVERRIDE; 50 const SkPaint&) SK_OVERRIDE;
51 virtual void drawPatch(const SkPatch& patch, const SkPaint& paint) SK_OVERRI DE; 51 virtual void drawPatch(const SkPoint cubics[12], const SkColor colors[4],
52 const SkPoint texCoords[4], SkXfermode* xmode,
53 const SkPaint& paint) SK_OVERRIDE;
52 virtual void drawData(const void* data, size_t length) SK_OVERRIDE; 54 virtual void drawData(const void* data, size_t length) SK_OVERRIDE;
53 55
54 virtual SkDrawFilter* setDrawFilter(SkDrawFilter*) SK_OVERRIDE; 56 virtual SkDrawFilter* setDrawFilter(SkDrawFilter*) SK_OVERRIDE;
55 57
56 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; 58 virtual void beginCommentGroup(const char* description) SK_OVERRIDE;
57 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; 59 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE;
58 virtual void endCommentGroup() SK_OVERRIDE; 60 virtual void endCommentGroup() SK_OVERRIDE;
59 61
60 protected: 62 protected:
61 SkTDArray<SkCanvas*> fList; 63 SkTDArray<SkCanvas*> fList;
(...skipping 23 matching lines...) Expand all
85 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint* ) SK_OVERRIDE; 87 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint* ) SK_OVERRIDE;
86 88
87 class Iter; 89 class Iter;
88 90
89 private: 91 private:
90 typedef SkCanvas INHERITED; 92 typedef SkCanvas INHERITED;
91 }; 93 };
92 94
93 95
94 #endif 96 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698