https://codereview.appspot.com/6346100/diff/1/src/core/SkAnnotation.cpp File src/core/SkAnnotation.cpp (left): https://codereview.appspot.com/6346100/diff/1/src/core/SkAnnotation.cpp#oldco... src/core/SkAnnotation.cpp:25: oops, thanks. https://codereview.appspot.com/6346100/diff/1/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): https://codereview.appspot.com/6346100/diff/1/src/pdf/SkPDFDevice.cpp#newcode... src/pdf/SkPDFDevice.cpp:1192: } Can you use SkAutoTUnref<> here? It would save having to remember to add the next line each time. https://codereview.appspot.com/6346100/diff/1/src/pdf/SkPDFStream.cpp File src/pdf/SkPDFStream.cpp (left): https://codereview.appspot.com/6346100/diff/1/src/pdf/SkPDFStream.cpp#oldcode17 src/pdf/SkPDFStream.cpp:17: return catalog->getDocumentFlags() & SkPDFDocument::kNoCompression_Flag; in general we should wrap bit-tests in SkToBol() if we're going to return a bool
https://codereview.appspot.com/6346100/diff/1/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): https://codereview.appspot.com/6346100/diff/1/src/pdf/SkPDFDevice.cpp#newcode... src/pdf/SkPDFDevice.cpp:1192: } On 2012/07/13 14:38:47, reed1 wrote: > Can you use SkAutoTUnref<> here? It would save having to remember to add the > next line each time. Done. https://codereview.appspot.com/6346100/diff/1/src/pdf/SkPDFStream.cpp File src/pdf/SkPDFStream.cpp (left): https://codereview.appspot.com/6346100/diff/1/src/pdf/SkPDFStream.cpp#oldcode17 src/pdf/SkPDFStream.cpp:17: return catalog->getDocumentFlags() & SkPDFDocument::kNoCompression_Flag; On 2012/07/13 14:38:47, reed1 wrote: > in general we should wrap bit-tests in SkToBol() if we're going to return a bool Done.
lgtm -- next round, we should start using SkNEW and SkNEW_ARGS ... (but not needed in this CL)