Use SkFlatDictionary in SkGPipe to take advantage of its new features.
authorscroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 17 Jul 2012 16:49:40 +0000 (16:49 +0000)
committerscroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 17 Jul 2012 16:49:40 +0000 (16:49 +0000)
commit4dffc596aa9fabd3104e66bc1f9957e8de4cb65d
tree36afc35e9cc8b9b38c17aabfb1be053141e381c0
parent284bf502c086d8fd4285f475a02e69d500c40219
Use SkFlatDictionary in SkGPipe to take advantage of its new features.

Add a controller class to perform the allocation/unallocation for the dictionary and to provide an entry to be replaced, if replacements are allowed.

TODO:
Use LRU caching in my custom controller so replacements will be done less often.
More refactoring on SkFlatDictionary so picture recording's use of the dictionary does not require going through the path to replace.

Review URL: https://codereview.appspot.com/6345102

git-svn-id: http://skia.googlecode.com/svn/trunk@4639 2bbb7eff-a529-9590-31e7-b0007b416f81
src/core/SkPictureFlat.cpp
src/core/SkPictureFlat.h
src/core/SkPictureRecord.cpp
src/core/SkPictureRecord.h
src/pipe/SkGPipeRead.cpp
src/pipe/SkGPipeWrite.cpp