aboutsummaryrefslogtreecommitdiffhomepage
path: root/dm/DMSrcSink.h
diff options
context:
space:
mode:
authorGravatar msarett <msarett@google.com>2015-09-08 06:59:48 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-09-08 06:59:48 -0700
commit8fd97eab1d9c17c662e08f6b3dbd7be49ec0a838 (patch)
tree39e68c77ef93ffd8e508fc79c28a5cc3ecdb63ab /dm/DMSrcSink.h
parentff390c9bdd852405d9dc0fd5e384b1f935d8df08 (diff)
Revert of Provides multiple implementations of Android's SkBitmapRegionDecoder (patchset #16 id:360001 of https://codereview.chromium.org/1288963002/ )
Reason for revert: Breaking Android bots Bad use of the utils folder Original issue's description: > Provides various implementations of Android's SkBitmapRegionDecoder. > > Implements testing in DM for these implementations. > > nanobench testing will follow after this. > > BUG=skia: > > Committed: https://skia.googlesource.com/skia/+/76f755e6d54a32f9887ad254ce59a3a62f28bde4 TBR=scroggo@google.com,reed@google.com NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=skia: Review URL: https://codereview.chromium.org/1322773004
Diffstat (limited to 'dm/DMSrcSink.h')
-rw-r--r--dm/DMSrcSink.h29
1 files changed, 0 insertions, 29 deletions
diff --git a/dm/DMSrcSink.h b/dm/DMSrcSink.h
index fe6c91dfad..efae87138e 100644
--- a/dm/DMSrcSink.h
+++ b/dm/DMSrcSink.h
@@ -12,7 +12,6 @@
#include "SkBBHFactory.h"
#include "SkBBoxHierarchy.h"
#include "SkBitmap.h"
-#include "SkBitmapRegionDecoderInterface.h"
#include "SkCanvas.h"
#include "SkData.h"
#include "SkGPipe.h"
@@ -129,34 +128,6 @@ private:
float fScale;
};
-// Allows for testing of various implementations of Android's BitmapRegionDecoder
-class BRDSrc : public Src {
-public:
- enum Mode {
- // Decode the entire image as one region.
- kFullImage_Mode,
- // Splits the image into multiple regions using a divisor and decodes the regions
- // separately. Also, this test adds a border of a few pixels to each of the regions
- // that it is decoding. This tests the behavior when a client asks for a region that
- // does not fully fit in the image.
- kDivisor_Mode,
- };
-
- BRDSrc(Path, SkBitmapRegionDecoderInterface::Strategy, Mode, CodecSrc::DstColorType, uint32_t);
-
- static float GetScale(uint32_t sampleSize) { return 1.0f / (float) sampleSize; }
-
- Error draw(SkCanvas*) const override;
- SkISize size() const override;
- Name name() const override;
- bool veto(SinkFlags) const override;
-private:
- Path fPath;
- SkBitmapRegionDecoderInterface::Strategy fStrategy;
- Mode fMode;
- CodecSrc::DstColorType fDstColorType;
- uint32_t fSampleSize;
-};
class ImageSrc : public Src {
public: