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

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

Issue 138013009: Culling API (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Updated per comments. Created 6 years, 9 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
« no previous file with comments | « src/utils/SkDumpCanvas.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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
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: 236 protected:
237 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK _OVERRIDE; 237 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK _OVERRIDE;
238 virtual void onPushCull(const SkRect& cullRect) SK_OVERRIDE;
239 virtual void onPopCull() SK_OVERRIDE;
238 240
239 private: 241 private:
240 SkTDArray<SkDrawCommand*> fCommandVector; 242 SkTDArray<SkDrawCommand*> fCommandVector;
241 int fWidth; 243 int fWidth;
242 int fHeight; 244 int fHeight;
243 bool fFilter; 245 bool fFilter;
244 int fIndex; 246 int fIndex;
245 SkMatrix fUserMatrix; 247 SkMatrix fUserMatrix;
246 SkMatrix fMatrix; 248 SkMatrix fMatrix;
247 SkIRect fClip; 249 SkIRect fClip;
(...skipping 21 matching lines...) Expand all
269 /** 271 /**
270 Applies any panning and zooming the user has specified before 272 Applies any panning and zooming the user has specified before
271 drawing anything else into the canvas. 273 drawing anything else into the canvas.
272 */ 274 */
273 void applyUserTransform(SkCanvas* canvas); 275 void applyUserTransform(SkCanvas* canvas);
274 276
275 typedef SkCanvas INHERITED; 277 typedef SkCanvas INHERITED;
276 }; 278 };
277 279
278 #endif 280 #endif
OLDNEW
« no previous file with comments | « src/utils/SkDumpCanvas.cpp ('k') | src/utils/debugger/SkDebugCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698