aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/pipe
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-05-23 12:21:05 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-05-23 12:21:05 +0000
commitdde0956375e87027df2fdd80d430dd819c217aac (patch)
treed44bf1f374734fe72de229b3f12a1464f0ae2cac /include/pipe
parentc7d9f9d8ae3283accf17e77e70fc64cfbfd8121a (diff)
add cross-process option to gpipe
add unittests for reader32 and writer32 git-svn-id: http://skia.googlecode.com/svn/trunk@1397 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/pipe')
-rw-r--r--include/pipe/SkGPipe.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/pipe/SkGPipe.h b/include/pipe/SkGPipe.h
index e9f850260e..0ca66ab9cb 100644
--- a/include/pipe/SkGPipe.h
+++ b/include/pipe/SkGPipe.h
@@ -19,6 +19,7 @@
#define SkGPipe_DEFINED
#include "SkWriter32.h"
+#include "SkFlattenable.h"
class SkCanvas;
@@ -74,7 +75,12 @@ public:
~SkGPipeWriter();
bool isRecording() const { return NULL != fCanvas; }
- SkCanvas* startRecording(SkGPipeController*);
+
+ enum Flags {
+ kCrossProcess_Flag = 1 << 0,
+ };
+
+ SkCanvas* startRecording(SkGPipeController*, uint32_t flags = 0);
// called in destructor, but can be called sooner once you know there
// should be no more drawing calls made into the recording canvas.
@@ -83,6 +89,7 @@ public:
private:
class SkGPipeCanvas* fCanvas;
SkGPipeController* fController;
+ SkFactorySet fFactorySet;
SkWriter32 fWriter;
};