| Index: third_party/WebKit/Source/platform/graphics/LoggingCanvas.h
|
| diff --git a/third_party/WebKit/Source/platform/graphics/LoggingCanvas.h b/third_party/WebKit/Source/platform/graphics/LoggingCanvas.h
|
| index 1d2f0bceb32d4681b4f0bb73f27007e80b71d6dd..99a3eb56de1fbfa81d823c2c588f6e22c092d6fc 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/LoggingCanvas.h
|
| +++ b/third_party/WebKit/Source/platform/graphics/LoggingCanvas.h
|
| @@ -33,13 +33,16 @@
|
|
|
| #include "platform/JSONValues.h"
|
| #include "platform/graphics/InterceptingCanvas.h"
|
| +#include <memory>
|
|
|
| namespace blink {
|
|
|
| class LoggingCanvas : public InterceptingCanvasBase {
|
| public:
|
| LoggingCanvas(int width, int height);
|
| - PassRefPtr<JSONArray> log();
|
| +
|
| + // Returns a snapshot of the current log data.
|
| + std::unique_ptr<JSONArray> log();
|
|
|
| void onDrawPaint(const SkPaint&) override;
|
| void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPaint&) override;
|
| @@ -75,7 +78,7 @@ public:
|
| private:
|
| friend class AutoLogger;
|
|
|
| - RefPtr<JSONArray> m_log;
|
| + std::unique_ptr<JSONArray> m_log;
|
| };
|
|
|
| #ifndef NDEBUG
|
|
|