OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 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 SkBBoxRecord_DEFINED | 9 #ifndef SkBBoxRecord_DEFINED |
10 #define SkBBoxRecord_DEFINED | 10 #define SkBBoxRecord_DEFINED |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 const SkPaint* paint) SK_OVERRIDE; | 48 const SkPaint* paint) SK_OVERRIDE; |
49 virtual void drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, | 49 virtual void drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, |
50 const SkRect& dst, const SkPaint* paint) SK_OVER
RIDE; | 50 const SkRect& dst, const SkPaint* paint) SK_OVER
RIDE; |
51 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, | 51 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, |
52 const SkPaint* paint) SK_OVERRIDE; | 52 const SkPaint* paint) SK_OVERRIDE; |
53 virtual void drawVertices(VertexMode mode, int vertexCount, | 53 virtual void drawVertices(VertexMode mode, int vertexCount, |
54 const SkPoint vertices[], const SkPoint texs[], | 54 const SkPoint vertices[], const SkPoint texs[], |
55 const SkColor colors[], SkXfermode* xfer, | 55 const SkColor colors[], SkXfermode* xfer, |
56 const uint16_t indices[], int indexCount, | 56 const uint16_t indices[], int indexCount, |
57 const SkPaint& paint) SK_OVERRIDE; | 57 const SkPaint& paint) SK_OVERRIDE; |
58 virtual void drawPatch(const SkPatch& patch, const SkPaint& paint) SK_OVERRI
DE; | 58 virtual void drawPatch(const SkPoint cubics[12], const SkColor colors[4], |
| 59 const SkPoint texCoords[4], SkXfermode* xmode, |
| 60 const SkPaint& paint) SK_OVERRIDE; |
59 | 61 |
60 protected: | 62 protected: |
61 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK
_OVERRIDE; | 63 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK
_OVERRIDE; |
62 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS
calar y, | 64 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS
calar y, |
63 const SkPaint&) SK_OVERRIDE; | 65 const SkPaint&) SK_OVERRIDE; |
64 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin
t pos[], | 66 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin
t pos[], |
65 const SkPaint&) SK_OVERRIDE; | 67 const SkPaint&) SK_OVERRIDE; |
66 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca
lar xpos[], | 68 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca
lar xpos[], |
67 SkScalar constY, const SkPaint&) SK_OVERRIDE; | 69 SkScalar constY, const SkPaint&) SK_OVERRIDE; |
68 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP
ath& path, | 70 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP
ath& path, |
(...skipping 14 matching lines...) Expand all Loading... |
83 /** | 85 /** |
84 * Paints from currently-active saveLayers that need to be applied to boundi
ng boxes of all | 86 * Paints from currently-active saveLayers that need to be applied to boundi
ng boxes of all |
85 * primitives drawn inside them. We own these pointers. | 87 * primitives drawn inside them. We own these pointers. |
86 **/ | 88 **/ |
87 SkTDArray<const SkPaint*> fSaveStack; | 89 SkTDArray<const SkPaint*> fSaveStack; |
88 | 90 |
89 typedef SkPictureRecord INHERITED; | 91 typedef SkPictureRecord INHERITED; |
90 }; | 92 }; |
91 | 93 |
92 #endif | 94 #endif |
OLD | NEW |