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 | 59 |
59 protected: | 60 protected: |
60 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK
_OVERRIDE; | 61 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK
_OVERRIDE; |
61 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS
calar y, | 62 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS
calar y, |
62 const SkPaint&) SK_OVERRIDE; | 63 const SkPaint&) SK_OVERRIDE; |
63 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin
t pos[], | 64 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin
t pos[], |
64 const SkPaint&) SK_OVERRIDE; | 65 const SkPaint&) SK_OVERRIDE; |
65 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca
lar xpos[], | 66 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca
lar xpos[], |
66 SkScalar constY, const SkPaint&) SK_OVERRIDE; | 67 SkScalar constY, const SkPaint&) SK_OVERRIDE; |
67 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP
ath& path, | 68 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP
ath& path, |
(...skipping 14 matching lines...) Expand all Loading... |
82 /** | 83 /** |
83 * Paints from currently-active saveLayers that need to be applied to boundi
ng boxes of all | 84 * Paints from currently-active saveLayers that need to be applied to boundi
ng boxes of all |
84 * primitives drawn inside them. We own these pointers. | 85 * primitives drawn inside them. We own these pointers. |
85 **/ | 86 **/ |
86 SkTDArray<const SkPaint*> fSaveStack; | 87 SkTDArray<const SkPaint*> fSaveStack; |
87 | 88 |
88 typedef SkPictureRecord INHERITED; | 89 typedef SkPictureRecord INHERITED; |
89 }; | 90 }; |
90 | 91 |
91 #endif | 92 #endif |
OLD | NEW |