| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef SkRecorder_DEFINED | 8 #ifndef SkRecorder_DEFINED |
| 9 #define SkRecorder_DEFINED | 9 #define SkRecorder_DEFINED |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 // Does not take ownership of the SkRecord. | 38 // Does not take ownership of the SkRecord. |
| 39 SkRecorder(SkRecord*, int width, int height); // legacy version | 39 SkRecorder(SkRecord*, int width, int height); // legacy version |
| 40 SkRecorder(SkRecord*, const SkRect& bounds); | 40 SkRecorder(SkRecord*, const SkRect& bounds); |
| 41 | 41 |
| 42 SkCanvasDrawableList* getDrawableList() const { return fDrawableList.get();
} | 42 SkCanvasDrawableList* getDrawableList() const { return fDrawableList.get();
} |
| 43 SkCanvasDrawableList* detachDrawableList() { return fDrawableList.detach();
} | 43 SkCanvasDrawableList* detachDrawableList() { return fDrawableList.detach();
} |
| 44 | 44 |
| 45 // Make SkRecorder forget entirely about its SkRecord*; all calls to SkRecor
der will fail. | 45 // Make SkRecorder forget entirely about its SkRecord*; all calls to SkRecor
der will fail. |
| 46 void forgetRecord(); | 46 void forgetRecord(); |
| 47 | 47 |
| 48 void clear(SkColor) SK_OVERRIDE; |
| 48 void drawPaint(const SkPaint& paint) SK_OVERRIDE; | 49 void drawPaint(const SkPaint& paint) SK_OVERRIDE; |
| 49 void drawPoints(PointMode mode, | 50 void drawPoints(PointMode mode, |
| 50 size_t count, | 51 size_t count, |
| 51 const SkPoint pts[], | 52 const SkPoint pts[], |
| 52 const SkPaint& paint) SK_OVERRIDE; | 53 const SkPaint& paint) SK_OVERRIDE; |
| 53 void drawRect(const SkRect& rect, const SkPaint& paint) SK_OVERRIDE; | 54 void drawRect(const SkRect& rect, const SkPaint& paint) SK_OVERRIDE; |
| 54 void drawOval(const SkRect& oval, const SkPaint&) SK_OVERRIDE; | 55 void drawOval(const SkRect& oval, const SkPaint&) SK_OVERRIDE; |
| 55 void drawRRect(const SkRRect& rrect, const SkPaint& paint) SK_OVERRIDE; | 56 void drawRRect(const SkRRect& rrect, const SkPaint& paint) SK_OVERRIDE; |
| 56 void drawPath(const SkPath& path, const SkPaint& paint) SK_OVERRIDE; | 57 void drawPath(const SkPath& path, const SkPaint& paint) SK_OVERRIDE; |
| 57 void drawBitmap(const SkBitmap& bitmap, | 58 void drawBitmap(const SkBitmap& bitmap, |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 } | 159 } |
| 159 | 160 |
| 160 SkRecord* fRecord; | 161 SkRecord* fRecord; |
| 161 | 162 |
| 162 int fSaveLayerCount; | 163 int fSaveLayerCount; |
| 163 SkTDArray<SkBool8> fSaveIsSaveLayer; | 164 SkTDArray<SkBool8> fSaveIsSaveLayer; |
| 164 SkAutoTDelete<SkCanvasDrawableList> fDrawableList; | 165 SkAutoTDelete<SkCanvasDrawableList> fDrawableList; |
| 165 }; | 166 }; |
| 166 | 167 |
| 167 #endif//SkRecorder_DEFINED | 168 #endif//SkRecorder_DEFINED |
| OLD | NEW |