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

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

Issue 1153593003: Remove the SkCanvas comment API (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: rebased Created 5 years, 6 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/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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 void setUserMatrix(SkMatrix matrix) { 135 void setUserMatrix(SkMatrix matrix) {
136 fUserMatrix = matrix; 136 fUserMatrix = matrix;
137 } 137 }
138 138
139 SkString clipStackData() const { return fClipStackData; } 139 SkString clipStackData() const { return fClipStackData; }
140 140
141 //////////////////////////////////////////////////////////////////////////////// 141 ////////////////////////////////////////////////////////////////////////////////
142 // Inherited from SkCanvas 142 // Inherited from SkCanvas
143 //////////////////////////////////////////////////////////////////////////////// 143 ////////////////////////////////////////////////////////////////////////////////
144 144
145 void beginCommentGroup(const char* description) override;
146 void addComment(const char* kywd, const char* value) override;
147 void endCommentGroup() override;
148
149 static const int kVizImageHeight = 256; 145 static const int kVizImageHeight = 256;
150 static const int kVizImageWidth = 256; 146 static const int kVizImageWidth = 256;
151 147
152 bool isClipEmpty() const override { return false; } 148 bool isClipEmpty() const override { return false; }
153 bool isClipRect() const override { return true; } 149 bool isClipRect() const override { return true; }
154 bool getClipBounds(SkRect* bounds) const override { 150 bool getClipBounds(SkRect* bounds) const override {
155 if (bounds) { 151 if (bounds) {
156 bounds->setXYWH(0, 0, 152 bounds->setXYWH(0, 0,
157 SkIntToScalar(this->imageInfo().width()), 153 SkIntToScalar(this->imageInfo().width()),
158 SkIntToScalar(this->imageInfo().height())); 154 SkIntToScalar(this->imageInfo().height()));
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 void outputPoints(const SkPoint* pts, int count); 260 void outputPoints(const SkPoint* pts, int count);
265 void outputPointsCommon(const SkPoint* pts, int count); 261 void outputPointsCommon(const SkPoint* pts, int count);
266 void outputScalar(SkScalar num); 262 void outputScalar(SkScalar num);
267 263
268 void updatePaintFilterCanvas(); 264 void updatePaintFilterCanvas();
269 265
270 typedef SkCanvas INHERITED; 266 typedef SkCanvas INHERITED;
271 }; 267 };
272 268
273 #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