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

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

Issue 757183003: Revert of Enable fast/images with slimming paint (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
« no previous file with comments | « Source/core/paint/LayerPainter.cpp ('k') | Source/core/paint/TransparencyDisplayItem.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/TransparencyDisplayItem.h
diff --git a/Source/core/paint/TransparencyDisplayItem.h b/Source/core/paint/TransparencyDisplayItem.h
index 30ad744259011975bf3149e78c999f7c1a9263fd..290d916f0d37c830bc8643a72329522ab380c8fd 100644
--- a/Source/core/paint/TransparencyDisplayItem.h
+++ b/Source/core/paint/TransparencyDisplayItem.h
@@ -11,12 +11,11 @@
namespace blink {
-// FIXME: Move this file to TransparencyRecorder
-
class BeginTransparencyDisplayItem : public DisplayItem {
public:
- BeginTransparencyDisplayItem(const RenderObject* renderer, Type type, const WebBlendMode& blendMode, const float opacity)
+ BeginTransparencyDisplayItem(const RenderObject* renderer, Type type, const LayoutRect& clipRect, const WebBlendMode& blendMode, const float opacity)
: DisplayItem(renderer, type)
+ , m_clipRect(clipRect)
, m_blendMode(blendMode)
, m_opacity(opacity) { }
virtual void replay(GraphicsContext*) override;
@@ -28,6 +27,7 @@
bool hasBlendMode() const { return m_blendMode != WebBlendModeNormal; }
+ const LayoutRect m_clipRect;
const WebBlendMode m_blendMode;
const float m_opacity;
};
@@ -44,18 +44,6 @@
#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
« no previous file with comments | « Source/core/paint/LayerPainter.cpp ('k') | Source/core/paint/TransparencyDisplayItem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698