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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 virtual void drawTextOnPath(const void* text, size_t byteLength, | 57 virtual void drawTextOnPath(const void* text, size_t byteLength, |
58 const SkPath& path, const SkMatrix* matrix, | 58 const SkPath& path, const SkMatrix* matrix, |
59 const SkPaint& paint) SK_OVERRIDE; | 59 const SkPaint& paint) SK_OVERRIDE; |
60 virtual void drawVertices(VertexMode mode, int vertexCount, | 60 virtual void drawVertices(VertexMode mode, int vertexCount, |
61 const SkPoint vertices[], const SkPoint texs[], | 61 const SkPoint vertices[], const SkPoint texs[], |
62 const SkColor colors[], SkXfermode* xfer, | 62 const SkColor colors[], SkXfermode* xfer, |
63 const uint16_t indices[], int indexCount, | 63 const uint16_t indices[], int indexCount, |
64 const SkPaint& paint) SK_OVERRIDE; | 64 const SkPaint& paint) SK_OVERRIDE; |
65 virtual void drawPicture(SkPicture& picture) SK_OVERRIDE; | 65 virtual void drawPicture(SkPicture& picture) SK_OVERRIDE; |
66 | 66 |
| 67 protected: |
| 68 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK
_OVERRIDE; |
| 69 |
67 private: | 70 private: |
68 /** | 71 /** |
69 * Takes a bounding box in current canvas view space, accounts for stroking
and effects, and | 72 * Takes a bounding box in current canvas view space, accounts for stroking
and effects, and |
70 * computes an axis-aligned bounding box in device coordinates, then passes
it to handleBBox() | 73 * computes an axis-aligned bounding box in device coordinates, then passes
it to handleBBox() |
71 * returns false if the draw is completely clipped out, and may safely be ig
nored. | 74 * returns false if the draw is completely clipped out, and may safely be ig
nored. |
72 **/ | 75 **/ |
73 bool transformBounds(const SkRect& bounds, const SkPaint* paint); | 76 bool transformBounds(const SkRect& bounds, const SkPaint* paint); |
74 | 77 |
75 typedef SkPictureRecord INHERITED; | 78 typedef SkPictureRecord INHERITED; |
76 }; | 79 }; |
77 | 80 |
78 #endif | 81 #endif |
OLD | NEW |