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

Unified Diff: third_party/WebKit/Source/platform/graphics/BoxReflection.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/BoxReflection.h
diff --git a/third_party/WebKit/Source/platform/graphics/BoxReflection.h b/third_party/WebKit/Source/platform/graphics/BoxReflection.h
index c92d41033e90339d7d2a2397118131b48ecc278d..7a6f7318886a347a5251876c2285246e73105e86 100644
--- a/third_party/WebKit/Source/platform/graphics/BoxReflection.h
+++ b/third_party/WebKit/Source/platform/graphics/BoxReflection.h
@@ -6,7 +6,7 @@
#define BoxReflection_h
#include "platform/PlatformExport.h"
-#include "third_party/skia/include/core/SkPicture.h"
+#include "platform/graphics/paint/PaintRecord.h"
#include "third_party/skia/include/core/SkRefCnt.h"
class SkMatrix;
@@ -32,12 +32,12 @@ class PLATFORM_EXPORT BoxReflection {
BoxReflection(ReflectionDirection direction,
float offset,
- sk_sp<SkPicture> mask = nullptr)
+ sk_sp<PaintRecord> mask = nullptr)
: m_direction(direction), m_offset(offset), m_mask(std::move(mask)) {}
ReflectionDirection direction() const { return m_direction; }
float offset() const { return m_offset; }
- SkPicture* mask() const { return m_mask.get(); }
+ PaintRecord* mask() const { return m_mask.get(); }
// Returns a matrix which maps points between the original content and its
// reflection. Reflections are self-inverse, so this matrix can be used to
@@ -53,7 +53,7 @@ class PLATFORM_EXPORT BoxReflection {
private:
ReflectionDirection m_direction;
float m_offset;
- sk_sp<SkPicture> m_mask;
+ sk_sp<PaintRecord> m_mask;
};
inline bool operator==(const BoxReflection& a, const BoxReflection& b) {

Powered by Google App Engine
This is Rietveld 408576698