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

Unified Diff: Source/core/paint/SVGMaskPainter.cpp

Issue 1203343002: WIP for display item list backed by ListContainer Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « Source/core/paint/SVGClipPainter.cpp ('k') | Source/core/paint/ScrollRecorder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/SVGMaskPainter.cpp
diff --git a/Source/core/paint/SVGMaskPainter.cpp b/Source/core/paint/SVGMaskPainter.cpp
index 0096a38592c90d0bde4feede2c2b96d16fcb42b6..e64f17006bc82253577d15dacbbf4bfecf2bfa6f 100644
--- a/Source/core/paint/SVGMaskPainter.cpp
+++ b/Source/core/paint/SVGMaskPainter.cpp
@@ -28,15 +28,15 @@ bool SVGMaskPainter::prepareEffect(const LayoutObject& object, GraphicsContext*
if (paintInvalidationRect.isEmpty() || !m_mask.element()->hasChildren())
return false;
- if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
- ASSERT(context->displayItemList());
- if (context->displayItemList()->displayItemConstructionIsDisabled())
- return true;
- context->displayItemList()->add(BeginCompositingDisplayItem::create(object, SkXfermode::kSrcOver_Mode, 1, &paintInvalidationRect));
- } else {
- BeginCompositingDisplayItem beginCompositingContent(object, SkXfermode::kSrcOver_Mode, 1, &paintInvalidationRect);
- beginCompositingContent.replay(*context);
- }
+ //if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
+ // ASSERT(context->displayItemList());
+ // if (context->displayItemList()->displayItemConstructionIsDisabled())
+ // return true;
+ // context->displayItemList()->add(BeginCompositingDisplayItem::create(object, SkXfermode::kSrcOver_Mode, 1, &paintInvalidationRect));
+ //} else {
+ // BeginCompositingDisplayItem beginCompositingContent(object, SkXfermode::kSrcOver_Mode, 1, &paintInvalidationRect);
+ // beginCompositingContent.replay(*context);
+ //}
return true;
}
@@ -55,18 +55,18 @@ void SVGMaskPainter::finishEffect(const LayoutObject& object, GraphicsContext* c
drawMaskForLayoutObject(context, object, object.objectBoundingBox(), paintInvalidationRect);
}
- if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
- ASSERT(context->displayItemList());
- if (!context->displayItemList()->displayItemConstructionIsDisabled()) {
- if (context->displayItemList()->lastDisplayItemIsNoopBegin())
- context->displayItemList()->removeLastDisplayItem();
- else
- context->displayItemList()->add(EndCompositingDisplayItem::create(object));
- }
- } else {
- EndCompositingDisplayItem endCompositingContent(object);
- endCompositingContent.replay(*context);
- }
+ //if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
+ // ASSERT(context->displayItemList());
+ // if (!context->displayItemList()->displayItemConstructionIsDisabled()) {
+ // if (context->displayItemList()->lastDisplayItemIsNoopBegin())
+ // context->displayItemList()->removeLastDisplayItem();
+ // else
+ // context->displayItemList()->add(EndCompositingDisplayItem::create(object));
+ // }
+ //} else {
+ // EndCompositingDisplayItem endCompositingContent(object);
+ // endCompositingContent.replay(*context);
+ //}
}
void SVGMaskPainter::drawMaskForLayoutObject(GraphicsContext* context, const LayoutObject& layoutObject, const FloatRect& targetBoundingBox, const FloatRect& targetPaintInvalidationRect)
« no previous file with comments | « Source/core/paint/SVGClipPainter.cpp ('k') | Source/core/paint/ScrollRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698