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

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

Issue 778563002: Revert "Change clear() to respect the clip" (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years 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/SkRecordDraw.cpp ('k') | src/core/SkRecorder.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 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
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
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
OLDNEW
« no previous file with comments | « src/core/SkRecordDraw.cpp ('k') | src/core/SkRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698