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

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

Issue 174593003: override new virtual onDrawDRRect in util canvas subclasses (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 10 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/SkProxyCanvas.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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 226
227 virtual void setMatrix(const SkMatrix& matrix) SK_OVERRIDE; 227 virtual void setMatrix(const SkMatrix& matrix) SK_OVERRIDE;
228 228
229 virtual bool skew(SkScalar sx, SkScalar sy) SK_OVERRIDE; 229 virtual bool skew(SkScalar sx, SkScalar sy) SK_OVERRIDE;
230 230
231 virtual bool translate(SkScalar dx, SkScalar dy) SK_OVERRIDE; 231 virtual bool translate(SkScalar dx, SkScalar dy) SK_OVERRIDE;
232 232
233 static const int kVizImageHeight = 256; 233 static const int kVizImageHeight = 256;
234 static const int kVizImageWidth = 256; 234 static const int kVizImageWidth = 256;
235 235
236 protected:
237 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK _OVERRIDE;
238
236 private: 239 private:
237 SkTDArray<SkDrawCommand*> fCommandVector; 240 SkTDArray<SkDrawCommand*> fCommandVector;
238 int fWidth; 241 int fWidth;
239 int fHeight; 242 int fHeight;
240 bool fFilter; 243 bool fFilter;
241 int fIndex; 244 int fIndex;
242 SkMatrix fUserMatrix; 245 SkMatrix fUserMatrix;
243 SkMatrix fMatrix; 246 SkMatrix fMatrix;
244 SkIRect fClip; 247 SkIRect fClip;
245 248
(...skipping 20 matching lines...) Expand all
266 /** 269 /**
267 Applies any panning and zooming the user has specified before 270 Applies any panning and zooming the user has specified before
268 drawing anything else into the canvas. 271 drawing anything else into the canvas.
269 */ 272 */
270 void applyUserTransform(SkCanvas* canvas); 273 void applyUserTransform(SkCanvas* canvas);
271 274
272 typedef SkCanvas INHERITED; 275 typedef SkCanvas INHERITED;
273 }; 276 };
274 277
275 #endif 278 #endif
OLDNEW
« no previous file with comments | « src/utils/SkProxyCanvas.cpp ('k') | src/utils/debugger/SkDebugCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698