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

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

Issue 536003002: Hide fields in SkImageInfo (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix qt Created 6 years, 3 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/lazy/SkCachingPixelRef.cpp ('k') | tests/BitmapCopyTest.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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 const SkPaint&) SK_OVERRIDE; 203 const SkPaint&) SK_OVERRIDE;
204 204
205 static const int kVizImageHeight = 256; 205 static const int kVizImageHeight = 256;
206 static const int kVizImageWidth = 256; 206 static const int kVizImageWidth = 256;
207 207
208 virtual bool isClipEmpty() const SK_OVERRIDE { return false; } 208 virtual bool isClipEmpty() const SK_OVERRIDE { return false; }
209 virtual bool isClipRect() const SK_OVERRIDE { return true; } 209 virtual bool isClipRect() const SK_OVERRIDE { return true; }
210 virtual bool getClipBounds(SkRect* bounds) const SK_OVERRIDE { 210 virtual bool getClipBounds(SkRect* bounds) const SK_OVERRIDE {
211 if (NULL != bounds) { 211 if (NULL != bounds) {
212 bounds->setXYWH(0, 0, 212 bounds->setXYWH(0, 0,
213 SkIntToScalar(this->imageInfo().fWidth), 213 SkIntToScalar(this->imageInfo().width()),
214 SkIntToScalar(this->imageInfo().fHeight)); 214 SkIntToScalar(this->imageInfo().height()));
215 } 215 }
216 return true; 216 return true;
217 } 217 }
218 virtual bool getClipDeviceBounds(SkIRect* bounds) const SK_OVERRIDE { 218 virtual bool getClipDeviceBounds(SkIRect* bounds) const SK_OVERRIDE {
219 if (NULL != bounds) { 219 if (NULL != bounds) {
220 bounds->setLargest(); 220 bounds->setLargest();
221 } 221 }
222 return true; 222 return true;
223 } 223 }
224 224
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 bool lastClipStackData(const SkPath& devPath); 322 bool lastClipStackData(const SkPath& devPath);
323 void outputConicPoints(const SkPoint* pts, SkScalar weight); 323 void outputConicPoints(const SkPoint* pts, SkScalar weight);
324 void outputPoints(const SkPoint* pts, int count); 324 void outputPoints(const SkPoint* pts, int count);
325 void outputPointsCommon(const SkPoint* pts, int count); 325 void outputPointsCommon(const SkPoint* pts, int count);
326 void outputScalar(SkScalar num); 326 void outputScalar(SkScalar num);
327 327
328 typedef SkCanvas INHERITED; 328 typedef SkCanvas INHERITED;
329 }; 329 };
330 330
331 #endif 331 #endif
OLDNEW
« no previous file with comments | « src/lazy/SkCachingPixelRef.cpp ('k') | tests/BitmapCopyTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698