Fix old debugger for sk_sp changes
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1827403002 Review URL: https://codereview.chromium.org/1827403002
This commit is contained in:
parent
fd7bd45ac2
commit
587ea71a52
@ -279,7 +279,7 @@ void SkDebuggerGUI::drawComplete() {
|
||||
|
||||
void SkDebuggerGUI::saveToFile(const SkString& filename) {
|
||||
SkFILEWStream file(filename.c_str());
|
||||
SkAutoTUnref<SkPicture> copy(fDebugger.copyPicture());
|
||||
sk_sp<SkPicture> copy(fDebugger.copyPicture());
|
||||
|
||||
SkAutoTUnref<SkPixelSerializer> serializer(
|
||||
SkImageEncoder::CreatePixelSerializer());
|
||||
|
@ -36,7 +36,7 @@ void SkDebugger::loadPicture(SkPicture* picture) {
|
||||
fIndex = fDebugCanvas->getSize() - 1;
|
||||
}
|
||||
|
||||
SkPicture* SkDebugger::copyPicture() {
|
||||
sk_sp<SkPicture> SkDebugger::copyPicture() {
|
||||
// We can't just call clone here since we want to removed the "deleted"
|
||||
// commands. Playing back will strip those out.
|
||||
SkPictureRecorder recorder;
|
||||
@ -56,7 +56,7 @@ SkPicture* SkDebugger::copyPicture() {
|
||||
fDebugCanvas->setOverdrawViz(overDraw);
|
||||
fDebugCanvas->setAllowSimplifyClip(pathOps);
|
||||
|
||||
return recorder.endRecording();
|
||||
return recorder.finishRecordingAsPicture();
|
||||
}
|
||||
|
||||
void SkDebugger::getOverviewText(const SkTDArray<double>* typeTimes,
|
||||
|
@ -58,7 +58,7 @@ public:
|
||||
|
||||
void loadPicture(SkPicture* picture);
|
||||
|
||||
SkPicture* copyPicture();
|
||||
sk_sp<SkPicture> copyPicture();
|
||||
|
||||
int getSize() const {
|
||||
return fDebugCanvas->getSize();
|
||||
|
Loading…
Reference in New Issue
Block a user