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

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

Issue 138013009: Culling API (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Comments, formatting. 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 | Annotate | Revision Log
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 onPushCull(const SkRect& cullRect) SK_OVERRIDE;
238 virtual void onPopCull() SK_OVERRIDE;
239
236 private: 240 private:
237 SkTDArray<SkDrawCommand*> fCommandVector; 241 SkTDArray<SkDrawCommand*> fCommandVector;
238 int fWidth; 242 int fWidth;
239 int fHeight; 243 int fHeight;
240 bool fFilter; 244 bool fFilter;
241 int fIndex; 245 int fIndex;
242 SkMatrix fUserMatrix; 246 SkMatrix fUserMatrix;
243 SkMatrix fMatrix; 247 SkMatrix fMatrix;
244 SkIRect fClip; 248 SkIRect fClip;
245 249
(...skipping 20 matching lines...) Expand all
266 /** 270 /**
267 Applies any panning and zooming the user has specified before 271 Applies any panning and zooming the user has specified before
268 drawing anything else into the canvas. 272 drawing anything else into the canvas.
269 */ 273 */
270 void applyUserTransform(SkCanvas* canvas); 274 void applyUserTransform(SkCanvas* canvas);
271 275
272 typedef SkCanvas INHERITED; 276 typedef SkCanvas INHERITED;
273 }; 277 };
274 278
275 #endif 279 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698