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

Unified Diff: src/utils/debugger/SkDrawCommand.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/utils/debugger/SkDebugCanvas.cpp ('k') | src/utils/debugger/SkDrawCommand.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/debugger/SkDrawCommand.h
diff --git a/src/utils/debugger/SkDrawCommand.h b/src/utils/debugger/SkDrawCommand.h
index 6da419e23aba182543a600e270b5427ed4b90dbb..951d15e19519d09c8329b67bc20249fe3b2e4bfb 100644
--- a/src/utils/debugger/SkDrawCommand.h
+++ b/src/utils/debugger/SkDrawCommand.h
@@ -46,23 +46,16 @@ public:
subclasses to track unresolved save() calls. */
virtual void trackSaveState(int* state) {}
- // The next "active" system is only used by save, saveLayer, restore,
- // pushCull and popCull. It is used in two ways:
- // To determine which saveLayers are currently active (at a
+ // The next "active" system is only used by save, saveLayer, and restore.
+ // It is used to determine which saveLayers are currently active (at a
// given point in the rendering).
// saves just return a kPushLayer action but don't track active state
// restores just return a kPopLayer action
// saveLayers return kPushLayer but also track the active state
- // To determine which culls are currently active (at a given point)
- // in the rendering).
- // pushCulls return a kPushCull action
- // popCulls return a kPopCull action
enum Action {
kNone_Action,
kPopLayer_Action,
kPushLayer_Action,
- kPopCull_Action,
- kPushCull_Action
};
virtual Action action() const { return kNone_Action; }
virtual void setActive(bool active) {}
@@ -613,28 +606,4 @@ private:
typedef SkDrawCommand INHERITED;
};
-class SkPushCullCommand : public SkDrawCommand {
-public:
- SkPushCullCommand(const SkRect&);
- virtual void execute(SkCanvas*) const SK_OVERRIDE;
- virtual void vizExecute(SkCanvas* canvas) const SK_OVERRIDE;
- virtual Action action() const { return kPushCull_Action; }
- virtual void setActive(bool active) { fActive = active; }
- virtual bool active() const { return fActive; }
-private:
- SkRect fCullRect;
- bool fActive;
-
- typedef SkDrawCommand INHERITED;
-};
-
-class SkPopCullCommand : public SkDrawCommand {
-public:
- SkPopCullCommand();
- virtual void execute(SkCanvas* canvas) const SK_OVERRIDE;
- virtual Action action() const { return kPopCull_Action; }
-private:
- typedef SkDrawCommand INHERITED;
-};
-
#endif
« 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