Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Unified Diff: third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.h

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: DrawingDisplayItem Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.h
diff --git a/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.h b/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.h
index 93034d3f7c75933e7c57df70a73a27751e938971..56837a82ef36abaaf3139f3ea51304b7952ae320 100644
--- a/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.h
+++ b/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.h
@@ -13,10 +13,6 @@
#include "wtf/Noncopyable.h"
#include <memory>
-class SkCanvas;
-class SkPicture;
-class SkPictureRecorder;
-
namespace blink {
class ImageBuffer;
@@ -56,9 +52,9 @@ class PLATFORM_EXPORT RecordingImageBufferSurface : public ImageBufferSurface {
~RecordingImageBufferSurface() override;
// Implementation of ImageBufferSurface interfaces
- SkCanvas* canvas() override;
+ PaintCanvas* canvas() override;
void disableDeferral(DisableDeferralReason) override;
- sk_sp<SkPicture> getPicture() override;
+ sk_sp<PaintRecord> getPicture() override;
void flush(FlushReason) override;
void didDraw(const FloatRect&) override;
bool isValid() const override { return true; }
@@ -128,8 +124,8 @@ class PLATFORM_EXPORT RecordingImageBufferSurface : public ImageBufferSurface {
bool finalizeFrameInternal(FallbackReason*);
int approximateOpCount();
- std::unique_ptr<SkPictureRecorder> m_currentFrame;
- sk_sp<SkPicture> m_previousFrame;
+ std::unique_ptr<PaintRecorder> m_currentFrame;
+ sk_sp<PaintRecord> m_previousFrame;
std::unique_ptr<ImageBufferSurface> m_fallbackSurface;
ImageBuffer* m_imageBuffer;
int m_initialSaveCount;

Powered by Google App Engine
This is Rietveld 408576698