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

Unified Diff: src/utils/SkGatherPixelRefsAndRects.cpp

Issue 869463002: remove (unused) GatherPixelRefs (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: src/utils/SkGatherPixelRefsAndRects.cpp
diff --git a/src/utils/SkGatherPixelRefsAndRects.cpp b/src/utils/SkGatherPixelRefsAndRects.cpp
deleted file mode 100644
index ee5b1472fcaa196aacbcbb2811039395d753a038..0000000000000000000000000000000000000000
--- a/src/utils/SkGatherPixelRefsAndRects.cpp
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * Copyright 2014 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#include "SkGatherPixelRefsAndRects.h"
-#include "SkNoSaveLayerCanvas.h"
-#include "SkPictureUtils.h"
-
-void SkPictureUtils::GatherPixelRefsAndRects(SkPicture* pict,
- SkPictureUtils::SkPixelRefContainer* prCont) {
- if (pict->cullRect().isEmpty()) {
- return ;
- }
-
- SkGatherPixelRefsAndRectsDevice device(SkScalarCeilToInt(pict->cullRect().width()),
- SkScalarCeilToInt(pict->cullRect().height()),
- prCont);
- SkNoSaveLayerCanvas canvas(&device);
-
- canvas.clipRect(pict->cullRect(), SkRegion::kIntersect_Op, false);
- canvas.drawPicture(pict);
-}

Powered by Google App Engine
This is Rietveld 408576698