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

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

Issue 794263002: Cull pushCull and popCull from Skia. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix debugger Created 6 years 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/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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS calar y, 230 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS calar y,
231 const SkPaint&) SK_OVERRIDE; 231 const SkPaint&) SK_OVERRIDE;
232 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin t pos[], 232 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin t pos[],
233 const SkPaint&) SK_OVERRIDE; 233 const SkPaint&) SK_OVERRIDE;
234 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca lar xpos[], 234 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca lar xpos[],
235 SkScalar constY, const SkPaint&) SK_OVERRIDE; 235 SkScalar constY, const SkPaint&) SK_OVERRIDE;
236 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP ath& path, 236 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP ath& path,
237 const SkMatrix* matrix, const SkPaint&) SK_OVE RRIDE; 237 const SkMatrix* matrix, const SkPaint&) SK_OVE RRIDE;
238 virtual void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, 238 virtual void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y,
239 const SkPaint& paint) SK_OVERRIDE; 239 const SkPaint& paint) SK_OVERRIDE;
240 virtual void onPushCull(const SkRect& cullRect) SK_OVERRIDE;
241 virtual void onPopCull() SK_OVERRIDE;
242 240
243 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR IDE; 241 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR IDE;
244 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE RRIDE; 242 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE RRIDE;
245 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR IDE; 243 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR IDE;
246 virtual void onClipRegion(const SkRegion& region, SkRegion::Op) SK_OVERRIDE; 244 virtual void onClipRegion(const SkRegion& region, SkRegion::Op) SK_OVERRIDE;
247 245
248 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint* ) SK_OVERRIDE; 246 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint* ) SK_OVERRIDE;
249 247
250 void markActiveCommands(int index); 248 void markActiveCommands(int index);
251 249
(...skipping 27 matching lines...) Expand all
279 */ 277 */
280 int fOutstandingSaveCount; 278 int fOutstandingSaveCount;
281 279
282 /** 280 /**
283 The active saveLayer commands at a given point in the renderering. 281 The active saveLayer commands at a given point in the renderering.
284 Only used when "mega" visualization is enabled. 282 Only used when "mega" visualization is enabled.
285 */ 283 */
286 SkTDArray<SkDrawCommand*> fActiveLayers; 284 SkTDArray<SkDrawCommand*> fActiveLayers;
287 285
288 /** 286 /**
289 The active cull commands at a given point in the rendering.
290 Only used when "mega" visualization is enabled.
291 */
292 SkTDArray<SkDrawCommand*> fActiveCulls;
293
294 /**
295 Adds the command to the classes vector of commands. 287 Adds the command to the classes vector of commands.
296 @param command The draw command for execution 288 @param command The draw command for execution
297 */ 289 */
298 void addDrawCommand(SkDrawCommand* command); 290 void addDrawCommand(SkDrawCommand* command);
299 291
300 /** 292 /**
301 Applies any panning and zooming the user has specified before 293 Applies any panning and zooming the user has specified before
302 drawing anything else into the canvas. 294 drawing anything else into the canvas.
303 */ 295 */
304 void applyUserTransform(SkCanvas* canvas); 296 void applyUserTransform(SkCanvas* canvas);
(...skipping 14 matching lines...) Expand all
319 bool lastClipStackData(const SkPath& devPath); 311 bool lastClipStackData(const SkPath& devPath);
320 void outputConicPoints(const SkPoint* pts, SkScalar weight); 312 void outputConicPoints(const SkPoint* pts, SkScalar weight);
321 void outputPoints(const SkPoint* pts, int count); 313 void outputPoints(const SkPoint* pts, int count);
322 void outputPointsCommon(const SkPoint* pts, int count); 314 void outputPointsCommon(const SkPoint* pts, int count);
323 void outputScalar(SkScalar num); 315 void outputScalar(SkScalar num);
324 316
325 typedef SkCanvas INHERITED; 317 typedef SkCanvas INHERITED;
326 }; 318 };
327 319
328 #endif 320 #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