Index: src/utils/debugger/SkDebugCanvas.cpp |
diff --git a/src/utils/debugger/SkDebugCanvas.cpp b/src/utils/debugger/SkDebugCanvas.cpp |
index 9f11a9e3f31d11c253a3ee8e1764391c92cb93cb..63739aee814a41a1a4b338d6009590f20eec56d8 100644 |
--- a/src/utils/debugger/SkDebugCanvas.cpp |
+++ b/src/utils/debugger/SkDebugCanvas.cpp |
@@ -69,16 +69,15 @@ public: |
, fFilterQuality(quality) {} |
protected: |
- bool onFilter(const SkPaint* paint, Type, SkTLazy<SkPaint>* filteredPaint) const override { |
- if (paint) { |
- filteredPaint->set(*paint); |
+ bool onFilter(SkTCopyOnFirstWrite<SkPaint>* paint, Type) const override { |
+ if (*paint) { |
if (nullptr != fOverdrawXfermode.get()) { |
- filteredPaint->get()->setAntiAlias(false); |
- filteredPaint->get()->setXfermode(fOverdrawXfermode.get()); |
+ paint->writable()->setAntiAlias(false); |
+ paint->writable()->setXfermode(fOverdrawXfermode.get()); |
} |
if (fOverrideFilterQuality) { |
- filteredPaint->get()->setFilterQuality(fFilterQuality); |
+ paint->writable()->setFilterQuality(fFilterQuality); |
} |
} |
return true; |