| 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 24 matching lines...) Expand all Loading... |
| 35 virtual void drawPath(const SkPath& path, const SkPaint& paint) SK_OVERRIDE; | 35 virtual void drawPath(const SkPath& path, const SkPaint& paint) SK_OVERRIDE; |
| 36 virtual void drawPoints(PointMode mode, size_t count, const SkPoint pts[], | 36 virtual void drawPoints(PointMode mode, size_t count, const SkPoint pts[], |
| 37 const SkPaint& paint) SK_OVERRIDE; | 37 const SkPaint& paint) SK_OVERRIDE; |
| 38 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE; | 38 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE; |
| 39 virtual void clear(SkColor) SK_OVERRIDE; | 39 virtual void clear(SkColor) SK_OVERRIDE; |
| 40 virtual void drawText(const void* text, size_t byteLength, SkScalar x, SkSca
lar y, | 40 virtual void drawText(const void* text, size_t byteLength, SkScalar x, SkSca
lar y, |
| 41 const SkPaint& paint) SK_OVERRIDE; | 41 const SkPaint& paint) SK_OVERRIDE; |
| 42 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, | 42 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, |
| 43 const SkPaint* paint = NULL) SK_OVERRIDE; | 43 const SkPaint* paint = NULL) SK_OVERRIDE; |
| 44 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, | 44 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, |
| 45 const SkRect& dst, const SkPaint* paint) SK_OVER
RIDE; | 45 const SkRect& dst, const SkPaint* paint, |
| 46 DrawBitmapRectFlags flags) SK_OVERRIDE; |
| 46 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& mat, | 47 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& mat, |
| 47 const SkPaint* paint) SK_OVERRIDE; | 48 const SkPaint* paint) SK_OVERRIDE; |
| 48 virtual void drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, | 49 virtual void drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, |
| 49 const SkRect& dst, const SkPaint* paint) SK_OVER
RIDE; | 50 const SkRect& dst, const SkPaint* paint) SK_OVER
RIDE; |
| 50 virtual void drawPosText(const void* text, size_t byteLength, | 51 virtual void drawPosText(const void* text, size_t byteLength, |
| 51 const SkPoint pos[], const SkPaint& paint) SK_OVERR
IDE; | 52 const SkPoint pos[], const SkPaint& paint) SK_OVERR
IDE; |
| 52 virtual void drawPosTextH(const void* text, size_t byteLength, | 53 virtual void drawPosTextH(const void* text, size_t byteLength, |
| 53 const SkScalar xpos[], SkScalar constY, | 54 const SkScalar xpos[], SkScalar constY, |
| 54 const SkPaint& paint) SK_OVERRIDE; | 55 const SkPaint& paint) SK_OVERRIDE; |
| 55 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, | 56 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, |
| (...skipping 13 matching lines...) Expand all Loading... |
| 69 * Takes a bounding box in current canvas view space, accounts for stroking
and effects, and | 70 * 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() | 71 * 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. | 72 * returns false if the draw is completely clipped out, and may safely be ig
nored. |
| 72 **/ | 73 **/ |
| 73 bool transformBounds(const SkRect& bounds, const SkPaint* paint); | 74 bool transformBounds(const SkRect& bounds, const SkPaint* paint); |
| 74 | 75 |
| 75 typedef SkPictureRecord INHERITED; | 76 typedef SkPictureRecord INHERITED; |
| 76 }; | 77 }; |
| 77 | 78 |
| 78 #endif | 79 #endif |
| OLD | NEW |