Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(833)

Side by Side Diff: src/core/SkPictureRecord.h

Issue 429343004: Stopped skipping tests in dm of SkPatch (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Moved DRAW_PATCH DrawType to the last position Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/core/SkPicturePlayback.cpp ('k') | src/core/SkPictureRecord.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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
OLDNEW
« no previous file with comments | « src/core/SkPicturePlayback.cpp ('k') | src/core/SkPictureRecord.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698