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

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

Issue 803913005: Remove SkCanvas::isDrawingToLayer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: init fix 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/SkPictureRecord.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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 void onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle edgeStyle ) SK_OVERRIDE; 128 void onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle edgeStyle ) SK_OVERRIDE;
129 void onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) SK_OVERRIDE; 129 void onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) SK_OVERRIDE;
130 130
131 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) SK_OVE RRIDE; 131 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) SK_OVE RRIDE;
132 132
133 void beginCommentGroup(const char*) SK_OVERRIDE; 133 void beginCommentGroup(const char*) SK_OVERRIDE;
134 void addComment(const char*, const char*) SK_OVERRIDE; 134 void addComment(const char*, const char*) SK_OVERRIDE;
135 void endCommentGroup() SK_OVERRIDE; 135 void endCommentGroup() SK_OVERRIDE;
136 void drawData(const void*, size_t) SK_OVERRIDE; 136 void drawData(const void*, size_t) SK_OVERRIDE;
137 137
138 bool isDrawingToLayer() const SK_OVERRIDE;
139 SkSurface* onNewSurface(const SkImageInfo&, const SkSurfaceProps&) SK_OVERRI DE { return NULL; } 138 SkSurface* onNewSurface(const SkImageInfo&, const SkSurfaceProps&) SK_OVERRI DE { return NULL; }
140 139
141 private: 140 private:
142 template <typename T> 141 template <typename T>
143 T* copy(const T*); 142 T* copy(const T*);
144 143
145 template <typename T> 144 template <typename T>
146 T* copy(const T[], size_t count); 145 T* copy(const T[], size_t count);
147 146
148 SkIRect devBounds() const { 147 SkIRect devBounds() const {
149 SkIRect devBounds; 148 SkIRect devBounds;
150 this->getClipDeviceBounds(&devBounds); 149 this->getClipDeviceBounds(&devBounds);
151 return devBounds; 150 return devBounds;
152 } 151 }
153 152
154 SkRecord* fRecord; 153 SkRecord* fRecord;
155 154
156 int fSaveLayerCount;
157 SkTDArray<SkBool8> fSaveIsSaveLayer;
158 SkAutoTDelete<SkCanvasDrawableList> fDrawableList; 155 SkAutoTDelete<SkCanvasDrawableList> fDrawableList;
159 }; 156 };
160 157
161 #endif//SkRecorder_DEFINED 158 #endif//SkRecorder_DEFINED
OLDNEW
« no previous file with comments | « src/core/SkPictureRecord.cpp ('k') | src/core/SkRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698