| 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 drawPatch(const SkPoint cubics[12], const SkColor colors[4], |
| 65 const SkPoint texCoords[4], SkXfermode* xmode, |
| 66 const SkPaint& paint) SK_OVERRIDE; |
| 65 virtual void drawData(const void*, size_t) SK_OVERRIDE; | 67 virtual void drawData(const void*, size_t) SK_OVERRIDE; |
| 66 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; | 68 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; |
| 67 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; | 69 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; |
| 68 virtual void endCommentGroup() SK_OVERRIDE; | 70 virtual void endCommentGroup() SK_OVERRIDE; |
| 69 virtual bool isDrawingToLayer() const SK_OVERRIDE; | 71 virtual bool isDrawingToLayer() const SK_OVERRIDE; |
| 70 | 72 |
| 71 void addFontMetricsTopBottom(const SkPaint& paint, const SkFlatData&, | 73 void addFontMetricsTopBottom(const SkPaint& paint, const SkFlatData&, |
| 72 SkScalar minY, SkScalar maxY); | 74 SkScalar minY, SkScalar maxY); |
| 73 | 75 |
| 74 const SkTDArray<const SkPicture* >& getPictureRefs() const { | 76 const SkTDArray<const SkPicture* >& getPictureRefs() const { |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 void addScalar(SkScalar scalar) { | 174 void addScalar(SkScalar scalar) { |
| 173 fWriter.writeScalar(scalar); | 175 fWriter.writeScalar(scalar); |
| 174 } | 176 } |
| 175 | 177 |
| 176 // The command at 'offset' in the skp uses the specified bitmap | 178 // The command at 'offset' in the skp uses the specified bitmap |
| 177 int addBitmap(const SkBitmap& bitmap); | 179 int addBitmap(const SkBitmap& bitmap); |
| 178 void addMatrix(const SkMatrix& matrix); | 180 void addMatrix(const SkMatrix& matrix); |
| 179 const SkFlatData* addPaint(const SkPaint& paint) { return this->addPaintPtr(
&paint); } | 181 const SkFlatData* addPaint(const SkPaint& paint) { return this->addPaintPtr(
&paint); } |
| 180 const SkFlatData* addPaintPtr(const SkPaint* paint); | 182 const SkFlatData* addPaintPtr(const SkPaint* paint); |
| 181 void addFlatPaint(const SkFlatData* flatPaint); | 183 void addFlatPaint(const SkFlatData* flatPaint); |
| 182 void addPatch(const SkPatch& patch); | 184 void addPatch(const SkPoint cubics[12]); |
| 183 void addPath(const SkPath& path); | 185 void addPath(const SkPath& path); |
| 184 void addPicture(const SkPicture* picture); | 186 void addPicture(const SkPicture* picture); |
| 185 void addPoint(const SkPoint& point); | 187 void addPoint(const SkPoint& point); |
| 186 void addPoints(const SkPoint pts[], int count); | 188 void addPoints(const SkPoint pts[], int count); |
| 187 void addRect(const SkRect& rect); | 189 void addRect(const SkRect& rect); |
| 188 void addRectPtr(const SkRect* rect); | 190 void addRectPtr(const SkRect* rect); |
| 189 void addIRect(const SkIRect& rect); | 191 void addIRect(const SkIRect& rect); |
| 190 void addIRectPtr(const SkIRect* rect); | 192 void addIRectPtr(const SkIRect* rect); |
| 191 void addRRect(const SkRRect&); | 193 void addRRect(const SkRRect&); |
| 192 void addRegion(const SkRegion& region); | 194 void addRegion(const SkRegion& region); |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 friend class SkPictureTester; // for unit testing | 334 friend class SkPictureTester; // for unit testing |
| 333 | 335 |
| 334 #ifdef SK_COLLAPSE_MATRIX_CLIP_STATE | 336 #ifdef SK_COLLAPSE_MATRIX_CLIP_STATE |
| 335 SkMatrixClipStateMgr fMCMgr; | 337 SkMatrixClipStateMgr fMCMgr; |
| 336 #endif | 338 #endif |
| 337 | 339 |
| 338 typedef SkCanvas INHERITED; | 340 typedef SkCanvas INHERITED; |
| 339 }; | 341 }; |
| 340 | 342 |
| 341 #endif | 343 #endif |
| OLD | NEW |