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

Side by Side Diff: src/utils/debugger/SkDrawCommand.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/debugger/SkDebugCanvas.cpp ('k') | src/utils/debugger/SkDrawCommand.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 #ifndef SKDRAWCOMMAND_H_ 9 #ifndef SKDRAWCOMMAND_H_
10 #define SKDRAWCOMMAND_H_ 10 #define SKDRAWCOMMAND_H_
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 SkScalar x() const { return fDx; } 564 SkScalar x() const { return fDx; }
565 SkScalar y() const { return fDy; } 565 SkScalar y() const { return fDy; }
566 566
567 private: 567 private:
568 SkScalar fDx; 568 SkScalar fDx;
569 SkScalar fDy; 569 SkScalar fDy;
570 570
571 typedef SkDrawCommand INHERITED; 571 typedef SkDrawCommand INHERITED;
572 }; 572 };
573 573
574 class SkPushCullCommand : public SkDrawCommand {
575 public:
576 SkPushCullCommand(const SkRect&);
577 virtual void execute(SkCanvas*) SK_OVERRIDE;
578
579 private:
580 SkRect fCullRect;
581
582 typedef SkDrawCommand INHERITED;
583 };
584
585 class SkPopCullCommand : public SkDrawCommand {
586 public:
587 SkPopCullCommand();
588 virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
589
590 private:
591 typedef SkDrawCommand INHERITED;
592 };
593
574 #endif 594 #endif
OLDNEW
« no previous file with comments | « src/utils/debugger/SkDebugCanvas.cpp ('k') | src/utils/debugger/SkDrawCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698