Index: src/pipe/utils/SamplePipeControllers.h |
diff --git a/src/pipe/utils/SamplePipeControllers.h b/src/pipe/utils/SamplePipeControllers.h |
index e8cc23bb3adeef86b7a3befab2a781f717222a8a..35cfba73b65ebcb89ea20be24cf0b536e177df5d 100644 |
--- a/src/pipe/utils/SamplePipeControllers.h |
+++ b/src/pipe/utils/SamplePipeControllers.h |
@@ -17,14 +17,14 @@ class SkMatrix; |
class PipeController : public SkGPipeController { |
public: |
PipeController(SkCanvas* target, SkPicture::InstallPixelRefProc proc = NULL); |
- |
+ virtual ~PipeController(); |
virtual void* requestBlock(size_t minRequest, size_t* actual) SK_OVERRIDE; |
virtual void notifyWritten(size_t bytes) SK_OVERRIDE; |
protected: |
- const void* getData() { return (const char*) fBlock.get() + fBytesWritten; } |
+ const void* getData() { return (const char*) fBlock + fBytesWritten; } |
SkGPipeReader fReader; |
private: |
- SkAutoMalloc fBlock; |
+ void* fBlock; |
size_t fBlockSize; |
size_t fBytesWritten; |
SkGPipeReader::Status fStatus; |