Index: dm/DMSrcSink.cpp |
diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp |
index 82962ff6920e873eb54ea6c7751e88368557ef19..aca86968c90eda0b22330b356300782e318912fd 100644 |
--- a/dm/DMSrcSink.cpp |
+++ b/dm/DMSrcSink.cpp |
@@ -6,7 +6,6 @@ |
*/ |
#include "DMSrcSink.h" |
-#include "SamplePipeControllers.h" |
#include "SkAndroidCodec.h" |
#include "SkCodec.h" |
#include "SkCommonFlags.h" |
@@ -1060,16 +1059,6 @@ Error ViaUpright::draw(const Src& src, SkBitmap* bitmap, SkWStream* stream, SkSt |
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ |
-Error ViaPipe::draw(const Src& src, SkBitmap* bitmap, SkWStream* stream, SkString* log) const { |
- auto size = src.size(); |
- return draw_to_canvas(fSink, bitmap, stream, log, size, [&](SkCanvas* canvas) { |
- PipeController controller(canvas, &SkImageDecoder::DecodeMemory); |
- SkGPipeWriter pipe; |
- const uint32_t kFlags = 0; |
- return src.draw(pipe.startRecording(&controller, kFlags, size.width(), size.height())); |
- }); |
-} |
- |
Error ViaRemote::draw(const Src& src, SkBitmap* bitmap, SkWStream* stream, SkString* log) const { |
return draw_to_canvas(fSink, bitmap, stream, log, src.size(), [&](SkCanvas* target) { |
SkAutoTDelete<SkRemote::Encoder> decoder(SkRemote::NewDecoder(target)); |