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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/SkPictureBuilder.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/paint/SkPictureBuilder.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/SkPictureBuilder.h b/third_party/WebKit/Source/platform/graphics/paint/SkPictureBuilder.h
index a6b3d4c1c152cd9e57165ee07b9fc9972152f7fb..5e46a6caf4720845eac353b10505180950faf710 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/SkPictureBuilder.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/SkPictureBuilder.h
@@ -8,19 +8,20 @@
#include "platform/PlatformExport.h"
#include "platform/geometry/FloatRect.h"
#include "platform/graphics/paint/DisplayItemClient.h"
+#include "platform/graphics/paint/PaintRecord.h"
#include "third_party/skia/include/core/SkRefCnt.h"
#include "wtf/Noncopyable.h"
#include <memory>
class SkMetaData;
-class SkPicture;
namespace blink {
class GraphicsContext;
class PaintController;
-// When slimming paint ships we can remove this SkPicture abstraction and
+// TODO(enne): rename this class to not be named SkPicture
+// When slimming paint ships we can remove this PaintRecord abstraction and
// rely on PaintController here.
class PLATFORM_EXPORT SkPictureBuilder final : public DisplayItemClient {
WTF_MAKE_NONCOPYABLE(SkPictureBuilder);
@@ -45,7 +46,7 @@ class PLATFORM_EXPORT SkPictureBuilder final : public DisplayItemClient {
// Returns a picture capturing all drawing performed on the builder's context
// since construction.
- sk_sp<SkPicture> endRecording();
+ sk_sp<PaintRecord> endRecording();
// DisplayItemClient methods
String debugName() const final { return "SkPictureBuilder"; }

Powered by Google App Engine
This is Rietveld 408576698