aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/sksg/SkSGInvalidationController.h
diff options
context:
space:
mode:
Diffstat (limited to 'experimental/sksg/SkSGInvalidationController.h')
-rw-r--r--experimental/sksg/SkSGInvalidationController.h43
1 files changed, 0 insertions, 43 deletions
diff --git a/experimental/sksg/SkSGInvalidationController.h b/experimental/sksg/SkSGInvalidationController.h
deleted file mode 100644
index df3857c1fe..0000000000
--- a/experimental/sksg/SkSGInvalidationController.h
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Copyright 2017 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#ifndef SkSGInvalidationController_DEFINED
-#define SkSGInvalidationController_DEFINED
-
-#include "SkMatrix.h"
-#include "SkTDArray.h"
-#include "SkTypes.h"
-
-struct SkRect;
-
-namespace sksg {
-
-/**
- * Receiver for invalidation events.
- *
- * Tracks dirty regions for repaint.
- */
-class InvalidationController : public SkNoncopyable {
-public:
- InvalidationController();
-
- void inval(const SkRect&, const SkMatrix& ctm = SkMatrix::I());
-
- const SkRect& bounds() const { return fBounds; }
- const SkRect* begin() const { return fRects.begin(); }
- const SkRect* end() const { return fRects.end(); }
-
-private:
- SkTDArray<SkRect> fRects;
- SkRect fBounds;
-
- typedef SkNoncopyable INHERITED;
-};
-
-} // namespace sksg
-
-#endif // SkSGInvalidationController_DEFINED