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

Unified Diff: dm/DMSrcSink.h

Issue 1288963002: Provides multiple implementations of Android's SkBitmapRegionDecoder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « dm/DM.cpp ('k') | dm/DMSrcSink.cpp » ('j') | dm/DMSrcSink.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DMSrcSink.h
diff --git a/dm/DMSrcSink.h b/dm/DMSrcSink.h
index 0aa22a06084fb795b33ee8094e2508b75bb2ca0e..669830f678c2e534fbc15926eb1c379985da9e02 100644
--- a/dm/DMSrcSink.h
+++ b/dm/DMSrcSink.h
@@ -12,6 +12,7 @@
#include "SkBBHFactory.h"
#include "SkBBoxHierarchy.h"
#include "SkBitmap.h"
+#include "SkBitmapRegionDecoder.h"
#include "SkCanvas.h"
#include "SkCodec.h"
#include "SkData.h"
@@ -100,6 +101,27 @@ private:
skiagm::GMRegistry::Factory fFactory;
};
+class BRDSrc : public Src {
scroggo 2015/08/13 16:53:07 Maybe add a description for what this is for?
msarett 2015/08/13 18:10:23 Done.
+public:
+ enum Mode {
+ kNormal_Mode,
scroggo 2015/08/13 16:53:07 What do these modes mean? Isn't BRD always used fo
msarett 2015/08/13 18:10:23 Maybe we don't need both of these tests or these a
scroggo 2015/08/28 13:49:43 The FullImage mode seems weird. Does it show us so
+ kSubset_Mode,
+ };
+
+ BRDSrc(Path, SkBitmapRegionDecoder::Strategy, Mode, SkColorType, uint32_t);
+
+ Error draw(SkCanvas*) const override;
+ SkISize size() const override;
+ Name name() const override;
+ bool veto(SinkFlags) const override;
+private:
+ Path fPath;
+ SkBitmapRegionDecoder::Strategy fStrategy;
+ Mode fMode;
+ SkColorType fColorType;
+ uint32_t fSampleSize;
+};
+
class CodecSrc : public Src {
public:
enum Mode {
« no previous file with comments | « dm/DM.cpp ('k') | dm/DMSrcSink.cpp » ('j') | dm/DMSrcSink.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698