aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkWriteBuffer.h
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2018-01-03 11:32:13 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-01-03 18:13:39 +0000
commitd1c65d6708de536a5971575809d7172fa4f54b37 (patch)
tree33853164c19762d89e3a1ce7e1a48f81ac77d9a0 /src/core/SkWriteBuffer.h
parent314d7c267f968643966d0e9678db9ef4e53456a4 (diff)
remove unneeded readbuffer flags
- buffers are always 'cross-process' - readbuffer is always validating Bug:796107 Change-Id: I59614e9c29490c0b029c60d2aafe2806671bc9e1 Reviewed-on: https://skia-review.googlesource.com/90560 Reviewed-by: Mike Klein <mtklein@google.com> Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'src/core/SkWriteBuffer.h')
-rw-r--r--src/core/SkWriteBuffer.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/core/SkWriteBuffer.h b/src/core/SkWriteBuffer.h
index bd3864cda2..82691b3c49 100644
--- a/src/core/SkWriteBuffer.h
+++ b/src/core/SkWriteBuffer.h
@@ -25,8 +25,6 @@ public:
SkWriteBuffer() {}
virtual ~SkWriteBuffer() {}
- virtual bool isCrossProcess() const = 0;
-
virtual void writePad32(const void* buffer, size_t bytes) = 0;
virtual void writeByteArray(const void* data, size_t size) = 0;
@@ -77,18 +75,10 @@ protected:
*/
class SkBinaryWriteBuffer : public SkWriteBuffer {
public:
- enum Flags {
- kCrossProcess_Flag = 1 << 0,
- };
-
- SkBinaryWriteBuffer(uint32_t flags = 0);
- SkBinaryWriteBuffer(void* initialStorage, size_t storageSize, uint32_t flags = 0);
+ SkBinaryWriteBuffer();
+ SkBinaryWriteBuffer(void* initialStorage, size_t storageSize);
~SkBinaryWriteBuffer() override;
- bool isCrossProcess() const override {
- return SkToBool(fFlags & kCrossProcess_Flag);
- }
-
void write(const void* buffer, size_t bytes) {
fWriter.write(buffer, bytes);
}
@@ -135,7 +125,6 @@ public:
SkRefCntSet* setTypefaceRecorder(SkRefCntSet*);
private:
- const uint32_t fFlags;
SkFactorySet* fFactorySet;
SkWriter32 fWriter;