Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(776)

Unified Diff: src/core/SkPictureFlat.h

Issue 1903483002: Delete unused fNamedFactorySet from SkWriteBuffer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/core/SkWriteBuffer.h ('k') | src/core/SkPictureFlat.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkPictureFlat.h
diff --git a/src/core/SkPictureFlat.h b/src/core/SkPictureFlat.h
index 73103c69f00fc088a3ec01c852c9e793d343ec9d..cd750bffab2e5d890bfaa05a103472d75ec12b63 100644
--- a/src/core/SkPictureFlat.h
+++ b/src/core/SkPictureFlat.h
@@ -230,12 +230,6 @@ public:
SkTypefacePlayback* getTypefacePlayback() { return fTypefacePlayback; }
/**
- * Optional factory recorder used during creation of SkFlatData objects. Set
- * using the protected method setNamedFactorySet.
- */
- SkNamedFactorySet* getNamedFactorySet() { return fFactorySet; }
-
- /**
* Flags to use during creation of SkFlatData objects. Defaults to zero.
*/
uint32_t getWriteBufferFlags() { return fWriteBufferFlags; }
@@ -259,18 +253,10 @@ protected:
*/
void setTypefacePlayback(SkTypefacePlayback*);
- /**
- * Set an SkNamedFactorySet to be used to store Factorys and their
- * corresponding names during flattening. Ref counted. Returns the same
- * set as a convenience.
- */
- SkNamedFactorySet* setNamedFactorySet(SkNamedFactorySet*);
-
private:
SkBitmapHeap* fBitmapHeap;
SkRefCntSet* fTypefaceSet;
SkTypefacePlayback* fTypefacePlayback;
- SkNamedFactorySet* fFactorySet;
const uint32_t fWriteBufferFlags;
typedef SkRefCnt INHERITED;
@@ -287,7 +273,6 @@ public:
buffer.setBitmapHeap(controller->getBitmapHeap());
buffer.setTypefaceRecorder(controller->getTypefaceSet());
- buffer.setNamedFactoryRecorder(controller->getNamedFactorySet());
mtklein 2016/04/19 14:06:39 Walk me through how it's unused again? It looks l
msarett 2016/04/19 14:13:29 It's never set on the SkFlatController - so this c
mtklein 2016/04/19 14:18:36 Ah, brilliant!
Traits::Flatten(buffer, obj);
size_t size = buffer.bytesWritten();
@@ -498,7 +483,6 @@ private:
SkASSERT(fController->getBitmapHeap() != nullptr);
fScratch.setBitmapHeap(fController->getBitmapHeap());
fScratch.setTypefaceRecorder(fController->getTypefaceSet());
- fScratch.setNamedFactoryRecorder(fController->getNamedFactorySet());
fReady = true;
}
« no previous file with comments | « include/core/SkWriteBuffer.h ('k') | src/core/SkPictureFlat.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698