| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 SkPictureRecord_DEFINED | 8 #ifndef SkPictureRecord_DEFINED |
| 9 #define SkPictureRecord_DEFINED | 9 #define SkPictureRecord_DEFINED |
| 10 | 10 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 const SkPaint*) SK_OVERRIDE; | 54 const SkPaint*) SK_OVERRIDE; |
| 55 virtual void drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, | 55 virtual void drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, |
| 56 const SkRect& dst, const SkPaint*) SK_OVERRIDE; | 56 const SkRect& dst, const SkPaint*) SK_OVERRIDE; |
| 57 virtual void drawSprite(const SkBitmap&, int left, int top, | 57 virtual void drawSprite(const SkBitmap&, int left, int top, |
| 58 const SkPaint*) SK_OVERRIDE; | 58 const SkPaint*) SK_OVERRIDE; |
| 59 virtual void drawVertices(VertexMode, int vertexCount, | 59 virtual void drawVertices(VertexMode, int vertexCount, |
| 60 const SkPoint vertices[], const SkPoint texs[], | 60 const SkPoint vertices[], const SkPoint texs[], |
| 61 const SkColor colors[], SkXfermode*, | 61 const SkColor colors[], SkXfermode*, |
| 62 const uint16_t indices[], int indexCount, | 62 const uint16_t indices[], int indexCount, |
| 63 const SkPaint&) SK_OVERRIDE; | 63 const SkPaint&) SK_OVERRIDE; |
| 64 virtual void drawPatch(const SkPatch& patch, const SkPaint& paint) SK_OVERRI
DE; |
| 64 virtual void drawData(const void*, size_t) SK_OVERRIDE; | 65 virtual void drawData(const void*, size_t) SK_OVERRIDE; |
| 65 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; | 66 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; |
| 66 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; | 67 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; |
| 67 virtual void endCommentGroup() SK_OVERRIDE; | 68 virtual void endCommentGroup() SK_OVERRIDE; |
| 68 virtual bool isDrawingToLayer() const SK_OVERRIDE; | 69 virtual bool isDrawingToLayer() const SK_OVERRIDE; |
| 69 | 70 |
| 70 void addFontMetricsTopBottom(const SkPaint& paint, const SkFlatData&, | 71 void addFontMetricsTopBottom(const SkPaint& paint, const SkFlatData&, |
| 71 SkScalar minY, SkScalar maxY); | 72 SkScalar minY, SkScalar maxY); |
| 72 | 73 |
| 73 const SkTDArray<const SkPicture* >& getPictureRefs() const { | 74 const SkTDArray<const SkPicture* >& getPictureRefs() const { |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 void addScalar(SkScalar scalar) { | 171 void addScalar(SkScalar scalar) { |
| 171 fWriter.writeScalar(scalar); | 172 fWriter.writeScalar(scalar); |
| 172 } | 173 } |
| 173 | 174 |
| 174 // The command at 'offset' in the skp uses the specified bitmap | 175 // The command at 'offset' in the skp uses the specified bitmap |
| 175 int addBitmap(const SkBitmap& bitmap); | 176 int addBitmap(const SkBitmap& bitmap); |
| 176 void addMatrix(const SkMatrix& matrix); | 177 void addMatrix(const SkMatrix& matrix); |
| 177 const SkFlatData* addPaint(const SkPaint& paint) { return this->addPaintPtr(
&paint); } | 178 const SkFlatData* addPaint(const SkPaint& paint) { return this->addPaintPtr(
&paint); } |
| 178 const SkFlatData* addPaintPtr(const SkPaint* paint); | 179 const SkFlatData* addPaintPtr(const SkPaint* paint); |
| 179 void addFlatPaint(const SkFlatData* flatPaint); | 180 void addFlatPaint(const SkFlatData* flatPaint); |
| 181 void addPatch(const SkPatch& patch); |
| 180 void addPath(const SkPath& path); | 182 void addPath(const SkPath& path); |
| 181 void addPicture(const SkPicture* picture); | 183 void addPicture(const SkPicture* picture); |
| 182 void addPoint(const SkPoint& point); | 184 void addPoint(const SkPoint& point); |
| 183 void addPoints(const SkPoint pts[], int count); | 185 void addPoints(const SkPoint pts[], int count); |
| 184 void addRect(const SkRect& rect); | 186 void addRect(const SkRect& rect); |
| 185 void addRectPtr(const SkRect* rect); | 187 void addRectPtr(const SkRect* rect); |
| 186 void addIRect(const SkIRect& rect); | 188 void addIRect(const SkIRect& rect); |
| 187 void addIRectPtr(const SkIRect* rect); | 189 void addIRectPtr(const SkIRect* rect); |
| 188 void addRRect(const SkRRect&); | 190 void addRRect(const SkRRect&); |
| 189 void addRegion(const SkRegion& region); | 191 void addRegion(const SkRegion& region); |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 friend class SkPictureTester; // for unit testing | 331 friend class SkPictureTester; // for unit testing |
| 330 | 332 |
| 331 #ifdef SK_COLLAPSE_MATRIX_CLIP_STATE | 333 #ifdef SK_COLLAPSE_MATRIX_CLIP_STATE |
| 332 SkMatrixClipStateMgr fMCMgr; | 334 SkMatrixClipStateMgr fMCMgr; |
| 333 #endif | 335 #endif |
| 334 | 336 |
| 335 typedef SkCanvas INHERITED; | 337 typedef SkCanvas INHERITED; |
| 336 }; | 338 }; |
| 337 | 339 |
| 338 #endif | 340 #endif |
| OLD | NEW |