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

Unified Diff: third_party/WebKit/Source/platform/graphics/PictureSnapshot.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/PictureSnapshot.h
diff --git a/third_party/WebKit/Source/platform/graphics/PictureSnapshot.h b/third_party/WebKit/Source/platform/graphics/PictureSnapshot.h
index 794378fdd855e6cb655e653d883b85e1c791f170..d56748e6cc1fe1a145827475603d34930c9facd1 100644
--- a/third_party/WebKit/Source/platform/graphics/PictureSnapshot.h
+++ b/third_party/WebKit/Source/platform/graphics/PictureSnapshot.h
@@ -33,9 +33,9 @@
#include "platform/PlatformExport.h"
#include "platform/graphics/GraphicsContext.h"
+#include "platform/graphics/paint/PaintRecord.h"
+#include "platform/graphics/paint/PaintRecorder.h"
#include "platform/json/JSONValues.h"
-#include "third_party/skia/include/core/SkPicture.h"
-#include "third_party/skia/include/core/SkPictureRecorder.h"
#include "third_party/skia/include/core/SkRefCnt.h"
#include "wtf/RefCounted.h"
#include <memory>
@@ -58,7 +58,7 @@ class PLATFORM_EXPORT PictureSnapshot : public RefCounted<PictureSnapshot> {
static PassRefPtr<PictureSnapshot> load(
const Vector<RefPtr<TilePictureStream>>&);
- PictureSnapshot(sk_sp<const SkPicture>);
+ PictureSnapshot(sk_sp<const PaintRecord>);
std::unique_ptr<Vector<char>> replay(unsigned fromStep = 0,
unsigned toStep = 0,
@@ -72,7 +72,7 @@ class PLATFORM_EXPORT PictureSnapshot : public RefCounted<PictureSnapshot> {
private:
std::unique_ptr<SkBitmap> createBitmap() const;
- sk_sp<const SkPicture> m_picture;
+ sk_sp<const PaintRecord> m_picture;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698