aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2017-12-20 05:33:53 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-12-20 10:50:44 +0000
commit0dec3af001ac443447f1f90c522f74feb0be850a (patch)
tree25ae2ea879af1ebce82c658c119c39f6014d136f /src
parent59c19a3877cba0dc66808c1e3dfdf3f8b85f892c (diff)
cleanup unused fields/includes
Bug: skia: Change-Id: I30533cf81631a146b729a530c30bd9831fd0ea7d Reviewed-on: https://skia-review.googlesource.com/87660 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/core/SkWriteBuffer.h20
1 files changed, 2 insertions, 18 deletions
diff --git a/src/core/SkWriteBuffer.h b/src/core/SkWriteBuffer.h
index 5d03e91caa..748254b065 100644
--- a/src/core/SkWriteBuffer.h
+++ b/src/core/SkWriteBuffer.h
@@ -10,18 +10,15 @@
#define SkWriteBuffer_DEFINED
#include "SkData.h"
-#include "SkImage.h"
-#include "SkPath.h"
-#include "SkPicture.h"
-#include "SkRefCnt.h"
#include "SkSerialProcs.h"
#include "SkWriter32.h"
#include "../private/SkTHash.h"
-class SkBitmap;
class SkDeduper;
class SkFactorySet;
class SkFlattenable;
+class SkImage;
+class SkPath;
class SkRefCntSet;
class SK_API SkWriteBuffer {
@@ -67,23 +64,10 @@ public:
void setDeduper(SkDeduper* deduper) { fDeduper = deduper; }
- /**
- * Return a client specified context pointer. This is not interpreted by the writebuffer.
- * It defaults to nullptr, but may be set with setClientContext(...).
- */
- void* getClientContext() const { return fClientCtx; }
-
- /**
- * Set the client specified context pointer. This is not interpreted by the writebuffer.
- * It defaults to nullptr. It can be inspected by calling getClientContext().
- */
- void setClientContext(void* ctx) { fClientCtx = ctx; }
-
void setSerialProcs(const SkSerialProcs& procs) { fProcs = procs; }
protected:
SkDeduper* fDeduper = nullptr;
- void* fClientCtx = nullptr;
SkSerialProcs fProcs;
friend class SkPicture; // fProcs