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

Side by Side Diff: src/utils/debugger/SkDrawCommand.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 #ifndef SKDRAWCOMMAND_H_ 9 #ifndef SKDRAWCOMMAND_H_
10 #define SKDRAWCOMMAND_H_ 10 #define SKDRAWCOMMAND_H_
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 SkScalar x() const { return fDx; } 550 SkScalar x() const { return fDx; }
551 SkScalar y() const { return fDy; } 551 SkScalar y() const { return fDy; }
552 552
553 private: 553 private:
554 SkScalar fDx; 554 SkScalar fDx;
555 SkScalar fDy; 555 SkScalar fDy;
556 556
557 typedef SkDrawCommand INHERITED; 557 typedef SkDrawCommand INHERITED;
558 }; 558 };
559 559
560 class SkPushCullCommand : public SkDrawCommand {
561 public:
562 SkPushCullCommand(const SkRect&);
563 virtual void execute(SkCanvas*) SK_OVERRIDE;
564
565 private:
566 SkRect fCullRect;
567
568 typedef SkDrawCommand INHERITED;
569 };
570
571 class SkPopCullCommand : public SkDrawCommand {
572 public:
573 SkPopCullCommand();
574 virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
575
576 private:
577 typedef SkDrawCommand INHERITED;
578 };
579
560 #endif 580 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698