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

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: New Types! 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..b3714796b4e43fff7a7637983e8f0af58ff50b0e 100644
--- a/Source/core/paint/TransparencyDisplayItem.h
+++ b/Source/core/paint/TransparencyDisplayItem.h
@@ -11,6 +11,8 @@
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)
@@ -44,6 +46,18 @@ private:
#endif
};
+class TransparencyRecorder {
+public:
+ explicit TransparencyRecorder(GraphicsContext*, const RenderObject*, DisplayItem::Type, const LayoutRect& clipRect, 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