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

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

Issue 313613004: Alter SkCanvas::drawPicture (devirtualize, take const SkPicture, take pointer) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add staging entry point for Chromium and Android Created 6 years, 6 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
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 #ifndef SKDRAWCOMMAND_H_ 9 #ifndef SKDRAWCOMMAND_H_
10 #define SKDRAWCOMMAND_H_ 10 #define SKDRAWCOMMAND_H_
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 336
337 private: 337 private:
338 SkPath fPath; 338 SkPath fPath;
339 SkPaint fPaint; 339 SkPaint fPaint;
340 340
341 typedef SkDrawCommand INHERITED; 341 typedef SkDrawCommand INHERITED;
342 }; 342 };
343 343
344 class SkDrawPictureCommand : public SkDrawCommand { 344 class SkDrawPictureCommand : public SkDrawCommand {
345 public: 345 public:
346 SkDrawPictureCommand(SkPicture& picture); 346 SkDrawPictureCommand(const SkPicture* picture);
347 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; 347 virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
348 virtual bool render(SkCanvas* canvas) const SK_OVERRIDE; 348 virtual bool render(SkCanvas* canvas) const SK_OVERRIDE;
349 349
350 private: 350 private:
351 SkPicture fPicture; 351 SkAutoTUnref<const SkPicture> fPicture;
352 352
353 typedef SkDrawCommand INHERITED; 353 typedef SkDrawCommand INHERITED;
354 }; 354 };
355 355
356 class SkDrawPointsCommand : public SkDrawCommand { 356 class SkDrawPointsCommand : public SkDrawCommand {
357 public: 357 public:
358 SkDrawPointsCommand(SkCanvas::PointMode mode, size_t count, const SkPoint pt s[], 358 SkDrawPointsCommand(SkCanvas::PointMode mode, size_t count, const SkPoint pt s[],
359 const SkPaint& paint); 359 const SkPaint& paint);
360 virtual ~SkDrawPointsCommand() { delete [] fPts; } 360 virtual ~SkDrawPointsCommand() { delete [] fPts; }
361 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; 361 virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 class SkPopCullCommand : public SkDrawCommand { 625 class SkPopCullCommand : public SkDrawCommand {
626 public: 626 public:
627 SkPopCullCommand(); 627 SkPopCullCommand();
628 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; 628 virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
629 virtual Action action() const { return kPopCull_Action; } 629 virtual Action action() const { return kPopCull_Action; }
630 private: 630 private:
631 typedef SkDrawCommand INHERITED; 631 typedef SkDrawCommand INHERITED;
632 }; 632 };
633 633
634 #endif 634 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698