aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/sksg/SkSGInvalidationController.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'experimental/sksg/SkSGInvalidationController.cpp')
-rw-r--r--experimental/sksg/SkSGInvalidationController.cpp32
1 files changed, 0 insertions, 32 deletions
diff --git a/experimental/sksg/SkSGInvalidationController.cpp b/experimental/sksg/SkSGInvalidationController.cpp
deleted file mode 100644
index 81a3376bf6..0000000000
--- a/experimental/sksg/SkSGInvalidationController.cpp
+++ /dev/null
@@ -1,32 +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.
- */
-
-#include "SkSGInvalidationController.h"
-
-#include "SkRect.h"
-#include "SkTLazy.h"
-
-namespace sksg {
-
-InvalidationController::InvalidationController() : fBounds(SkRect::MakeEmpty()) {}
-
-void InvalidationController::inval(const SkRect& r, const SkMatrix& ctm) {
- if (r.isEmpty()) {
- return;
- }
-
- SkTCopyOnFirstWrite<SkRect> rect(r);
-
- if (!ctm.isIdentity()) {
- ctm.mapRect(rect.writable());
- }
-
- fRects.push(*rect);
- fBounds.join(*rect);
-}
-
-} // namespace sksg