| 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
|
|
|