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

Unified Diff: Source/core/paint/TransparencyDisplayItem.h

Issue 744163002: Enable fast/images with slimming paint (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix compile Created 6 years, 1 month 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: Source/core/paint/TransparencyDisplayItem.h
diff --git a/Source/core/paint/TransparencyDisplayItem.h b/Source/core/paint/TransparencyDisplayItem.h
index 290d916f0d37c830bc8643a72329522ab380c8fd..30ad744259011975bf3149e78c999f7c1a9263fd 100644
--- a/Source/core/paint/TransparencyDisplayItem.h
+++ b/Source/core/paint/TransparencyDisplayItem.h
@@ -11,11 +11,12 @@
namespace blink {
+// FIXME: Move this file to TransparencyRecorder
+
class BeginTransparencyDisplayItem : public DisplayItem {
public:
- BeginTransparencyDisplayItem(const RenderObject* renderer, Type type, const LayoutRect& clipRect, const WebBlendMode& blendMode, const float opacity)
+ BeginTransparencyDisplayItem(const RenderObject* renderer, Type type, const WebBlendMode& blendMode, const float opacity)
: DisplayItem(renderer, type)
- , m_clipRect(clipRect)
, m_blendMode(blendMode)
, m_opacity(opacity) { }
virtual void replay(GraphicsContext*) override;
@@ -27,7 +28,6 @@ private:
bool hasBlendMode() const { return m_blendMode != WebBlendModeNormal; }
- const LayoutRect m_clipRect;
const WebBlendMode m_blendMode;
const float m_opacity;
};
@@ -44,6 +44,18 @@ private:
#endif
};
+class TransparencyRecorder {
+public:
+ explicit TransparencyRecorder(GraphicsContext*, const RenderObject*, DisplayItem::Type, const WebBlendMode&, const float opacity);
+
+ ~TransparencyRecorder();
+
+private:
+ const RenderObject* m_renderer;
+ const DisplayItem::Type m_type;
+ GraphicsContext* m_graphicsContext;
+};
+
} // namespace blink
#endif // TransparencyDisplayItem_h

Powered by Google App Engine
This is Rietveld 408576698