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

Side by Side Diff: src/utils/debugger/SkDebugCanvas.h

Issue 1533953002: change signature for virtual related to saveLayer, passing SaveLayerRec (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update comment Created 5 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/utils/SkNWayCanvas.cpp ('k') | src/utils/debugger/SkDebugCanvas.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 /* 2 /*
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SKDEBUGCANVAS_H_ 10 #ifndef SKDEBUGCANVAS_H_
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 } 158 }
159 bool getClipDeviceBounds(SkIRect* bounds) const override { 159 bool getClipDeviceBounds(SkIRect* bounds) const override {
160 if (bounds) { 160 if (bounds) {
161 bounds->setLargest(); 161 bounds->setLargest();
162 } 162 }
163 return true; 163 return true;
164 } 164 }
165 165
166 protected: 166 protected:
167 void willSave() override; 167 void willSave() override;
168 SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveFlags) ov erride; 168 SaveLayerStrategy getSaveLayerStrategy(const SaveLayerRec&) override;
169 void willRestore() override; 169 void willRestore() override;
170 170
171 void didConcat(const SkMatrix&) override; 171 void didConcat(const SkMatrix&) override;
172 void didSetMatrix(const SkMatrix&) override; 172 void didSetMatrix(const SkMatrix&) override;
173 173
174 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override; 174 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override;
175 void onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y, 175 void onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y,
176 const SkPaint&) override; 176 const SkPaint&) override;
177 void onDrawPosText(const void* text, size_t byteLength, const SkPoint pos[], 177 void onDrawPosText(const void* text, size_t byteLength, const SkPoint pos[],
178 const SkPaint&) override; 178 const SkPaint&) override;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 void outputPoints(const SkPoint* pts, int count); 260 void outputPoints(const SkPoint* pts, int count);
261 void outputPointsCommon(const SkPoint* pts, int count); 261 void outputPointsCommon(const SkPoint* pts, int count);
262 void outputScalar(SkScalar num); 262 void outputScalar(SkScalar num);
263 263
264 void updatePaintFilterCanvas(); 264 void updatePaintFilterCanvas();
265 265
266 typedef SkCanvas INHERITED; 266 typedef SkCanvas INHERITED;
267 }; 267 };
268 268
269 #endif 269 #endif
OLDNEW
« no previous file with comments | « src/utils/SkNWayCanvas.cpp ('k') | src/utils/debugger/SkDebugCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698