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

Unified Diff: third_party/WebKit/Source/platform/graphics/ImageBuffer.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/ImageBuffer.h
diff --git a/third_party/WebKit/Source/platform/graphics/ImageBuffer.h b/third_party/WebKit/Source/platform/graphics/ImageBuffer.h
index 4fed4e1140111ef1051d5e21705f6733ea7ac594..2c981fe4643d1c5023702a819f9f1442ba016dc2 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageBuffer.h
+++ b/third_party/WebKit/Source/platform/graphics/ImageBuffer.h
@@ -35,9 +35,9 @@
#include "platform/graphics/GraphicsTypes.h"
#include "platform/graphics/GraphicsTypes3D.h"
#include "platform/graphics/ImageBufferSurface.h"
+#include "platform/graphics/paint/PaintFlags.h"
+#include "platform/graphics/paint/PaintRecord.h"
#include "platform/transforms/AffineTransform.h"
-#include "third_party/skia/include/core/SkPaint.h"
-#include "third_party/skia/include/core/SkPicture.h"
#include "third_party/skia/include/core/SkRefCnt.h"
#include "wtf/Forward.h"
#include "wtf/PassRefPtr.h"
@@ -109,9 +109,9 @@ class PLATFORM_EXPORT ImageBuffer {
// Called by subclasses of ImageBufferSurface to install a new canvas object.
// Virtual for mocking
- virtual void resetCanvas(SkCanvas*) const;
+ virtual void resetCanvas(PaintCanvas*) const;
- SkCanvas* canvas() const;
+ PaintCanvas* canvas() const;
void disableDeferral(DisableDeferralReason) const;
// Called at the end of a task that rendered a whole frame
@@ -169,7 +169,7 @@ class PLATFORM_EXPORT ImageBuffer {
AccelerationHint = PreferNoAcceleration,
SnapshotReason = SnapshotReasonUnknown) const;
- sk_sp<SkPicture> getPicture() { return m_surface->getPicture(); }
+ sk_sp<PaintRecord> getPicture() { return m_surface->getPicture(); }
void draw(GraphicsContext&, const FloatRect&, const FloatRect*, SkBlendMode);
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/Image.cpp ('k') | third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698