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

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: Removed GPU headers from GM 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
« no previous file with comments | « include/utils/SkDumpCanvas.h ('k') | include/utils/SkProxyCanvas.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 /* 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;
52 virtual void drawData(const void* data, size_t length) SK_OVERRIDE; 51 virtual void drawData(const void* data, size_t length) SK_OVERRIDE;
53 52
54 virtual SkDrawFilter* setDrawFilter(SkDrawFilter*) SK_OVERRIDE; 53 virtual SkDrawFilter* setDrawFilter(SkDrawFilter*) SK_OVERRIDE;
55 54
56 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; 55 virtual void beginCommentGroup(const char* description) SK_OVERRIDE;
57 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; 56 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE;
58 virtual void endCommentGroup() SK_OVERRIDE; 57 virtual void endCommentGroup() SK_OVERRIDE;
59 58
60 protected: 59 protected:
61 SkTDArray<SkCanvas*> fList; 60 SkTDArray<SkCanvas*> fList;
62 61
63 virtual void willSave() SK_OVERRIDE; 62 virtual void willSave() SK_OVERRIDE;
64 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF lags) SK_OVERRIDE; 63 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF lags) SK_OVERRIDE;
65 virtual void willRestore() SK_OVERRIDE; 64 virtual void willRestore() SK_OVERRIDE;
66 65
67 virtual void didConcat(const SkMatrix&) SK_OVERRIDE; 66 virtual void didConcat(const SkMatrix&) SK_OVERRIDE;
68 virtual void didSetMatrix(const SkMatrix&) SK_OVERRIDE; 67 virtual void didSetMatrix(const SkMatrix&) SK_OVERRIDE;
69 68
70 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK _OVERRIDE; 69 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK _OVERRIDE;
71 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS calar y, 70 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS calar y,
72 const SkPaint&) SK_OVERRIDE; 71 const SkPaint&) SK_OVERRIDE;
73 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin t pos[], 72 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin t pos[],
74 const SkPaint&) SK_OVERRIDE; 73 const SkPaint&) SK_OVERRIDE;
75 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca lar xpos[], 74 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca lar xpos[],
76 SkScalar constY, const SkPaint&) SK_OVERRIDE; 75 SkScalar constY, const SkPaint&) SK_OVERRIDE;
77 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP ath& path, 76 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP ath& path,
78 const SkMatrix* matrix, const SkPaint&) SK_OVE RRIDE; 77 const SkMatrix* matrix, const SkPaint&) SK_OVE RRIDE;
79 78 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
79 const SkPoint texCoords[4], SkXfermode* xmode,
80 const SkPaint& paint) SK_OVERRIDE;
81
80 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR IDE; 82 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR IDE;
81 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE RRIDE; 83 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE RRIDE;
82 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR IDE; 84 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR IDE;
83 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; 85 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE;
84 86
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
« no previous file with comments | « include/utils/SkDumpCanvas.h ('k') | include/utils/SkProxyCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698