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

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

Issue 489103003: remove code for (dead) SK_SUPPORT_LEGACY_GETCLIPTYPE (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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/SkCanvas.cpp ('k') | no next file » | 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 const SkPoint vertices[], const SkPoint texs[], 203 const SkPoint vertices[], const SkPoint texs[],
204 const SkColor colors[], SkXfermode*, 204 const SkColor colors[], SkXfermode*,
205 const uint16_t indices[], int indexCount, 205 const uint16_t indices[], int indexCount,
206 const SkPaint&) SK_OVERRIDE; 206 const SkPaint&) SK_OVERRIDE;
207 207
208 static const int kVizImageHeight = 256; 208 static const int kVizImageHeight = 256;
209 static const int kVizImageWidth = 256; 209 static const int kVizImageWidth = 256;
210 210
211 virtual bool isClipEmpty() const SK_OVERRIDE { return false; } 211 virtual bool isClipEmpty() const SK_OVERRIDE { return false; }
212 virtual bool isClipRect() const SK_OVERRIDE { return true; } 212 virtual bool isClipRect() const SK_OVERRIDE { return true; }
213 #ifdef SK_SUPPORT_LEGACY_GETCLIPTYPE
214 virtual ClipType getClipType() const SK_OVERRIDE {
215 return kRect_ClipType;
216 }
217 #endif
218 virtual bool getClipBounds(SkRect* bounds) const SK_OVERRIDE { 213 virtual bool getClipBounds(SkRect* bounds) const SK_OVERRIDE {
219 if (NULL != bounds) { 214 if (NULL != bounds) {
220 bounds->setXYWH(0, 0, 215 bounds->setXYWH(0, 0,
221 SkIntToScalar(this->imageInfo().fWidth), 216 SkIntToScalar(this->imageInfo().fWidth),
222 SkIntToScalar(this->imageInfo().fHeight)); 217 SkIntToScalar(this->imageInfo().fHeight));
223 } 218 }
224 return true; 219 return true;
225 } 220 }
226 virtual bool getClipDeviceBounds(SkIRect* bounds) const SK_OVERRIDE { 221 virtual bool getClipDeviceBounds(SkIRect* bounds) const SK_OVERRIDE {
227 if (NULL != bounds) { 222 if (NULL != bounds) {
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 bool lastClipStackData(const SkPath& devPath); 324 bool lastClipStackData(const SkPath& devPath);
330 void outputConicPoints(const SkPoint* pts, SkScalar weight); 325 void outputConicPoints(const SkPoint* pts, SkScalar weight);
331 void outputPoints(const SkPoint* pts, int count); 326 void outputPoints(const SkPoint* pts, int count);
332 void outputPointsCommon(const SkPoint* pts, int count); 327 void outputPointsCommon(const SkPoint* pts, int count);
333 void outputScalar(SkScalar num); 328 void outputScalar(SkScalar num);
334 329
335 typedef SkCanvas INHERITED; 330 typedef SkCanvas INHERITED;
336 }; 331 };
337 332
338 #endif 333 #endif
OLDNEW
« no previous file with comments | « src/core/SkCanvas.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698