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

Unified Diff: tools/PictureRenderer.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: tools/PictureRenderer.cpp
diff --git a/tools/PictureRenderer.cpp b/tools/PictureRenderer.cpp
index dc672f013b9af2f6b78a4feea4aa973e99398c5a..3fe246c402824e6a069a7de43300e14b16e3aba2 100644
--- a/tools/PictureRenderer.cpp
+++ b/tools/PictureRenderer.cpp
@@ -831,39 +831,4 @@ SkBBHFactory* PictureRenderer::getFactory() {
return NULL;
}
-///////////////////////////////////////////////////////////////////////////////
-
-class GatherRenderer : public PictureRenderer {
-public:
-#if SK_SUPPORT_GPU
- GatherRenderer(const GrContext::Options& opts) : INHERITED(opts) { }
-#endif
-
- bool render(SkBitmap** out = NULL) SK_OVERRIDE {
- SkRect bounds = SkRect::MakeWH(SkIntToScalar(fPicture->cullRect().width()),
- SkIntToScalar(fPicture->cullRect().height()));
- SkData* data = SkPictureUtils::GatherPixelRefs(fPicture, bounds);
- SkSafeUnref(data);
-
- return (fWritePath.isEmpty()); // we don't have anything to write
- }
-
-private:
- SkString getConfigNameInternal() SK_OVERRIDE {
- return SkString("gather_pixelrefs");
- }
-
- typedef PictureRenderer INHERITED;
-};
-
-#if SK_SUPPORT_GPU
-PictureRenderer* CreateGatherPixelRefsRenderer(const GrContext::Options& opts) {
- return SkNEW_ARGS(GatherRenderer, (opts));
-}
-#else
-PictureRenderer* CreateGatherPixelRefsRenderer() {
- return SkNEW(GatherRenderer);
-}
-#endif
-
} // namespace sk_tools

Powered by Google App Engine
This is Rietveld 408576698