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

Issue 757183003: Revert of Enable fast/images with slimming paint (Closed)

Created:
6 years ago by pdr.
Modified:
6 years ago
CC:
blink-reviews, blink-reviews-paint_chromium.org, slimming-paint-reviews_chromium.org
Project:
blink
Visibility:
Public.

Description

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+313 lines, -409 lines) Patch
M LayoutTests/TestExpectations View 1 chunk +0 lines, -6 lines 0 comments Download
M LayoutTests/VirtualTestSuites View 1 chunk +0 lines, -5 lines 0 comments Download
D LayoutTests/virtual/slimmingpaint/fast/images/README.txt View 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/core.gypi View 2 chunks +1 line, -3 lines 0 comments Download
M Source/core/paint/BoxClipper.cpp View 1 chunk +34 lines, -2 lines 0 comments Download
M Source/core/paint/BoxPainter.cpp View 5 chunks +6 lines, -5 lines 0 comments Download
M Source/core/paint/ClipRecorder.h View 2 chunks +28 lines, -9 lines 0 comments Download
M Source/core/paint/ClipRecorder.cpp View 1 chunk +77 lines, -52 lines 0 comments Download
A Source/core/paint/ClipRecorderTest.cpp View 1 chunk +56 lines, -0 lines 0 comments Download
M Source/core/paint/FilterPainter.h View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/paint/FilterPainter.cpp View 2 chunks +1 line, -2 lines 0 comments Download
M Source/core/paint/HTMLCanvasPainter.cpp View 3 chunks +8 lines, -7 lines 0 comments Download
D Source/core/paint/LayerClipRecorder.h View 1 chunk +0 lines, -50 lines 0 comments Download
D Source/core/paint/LayerClipRecorder.cpp View 1 chunk +0 lines, -105 lines 0 comments Download
D Source/core/paint/LayerClipRecorderTest.cpp View 1 chunk +0 lines, -56 lines 0 comments Download
M Source/core/paint/LayerPainter.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/paint/LayerPainter.cpp View 10 chunks +54 lines, -28 lines 0 comments Download
M Source/core/paint/TransparencyDisplayItem.h View 3 chunks +3 lines, -15 lines 0 comments Download
M Source/core/paint/TransparencyDisplayItem.cpp View 4 chunks +9 lines, -25 lines 0 comments Download
M Source/core/paint/ViewDisplayList.h View 1 chunk +29 lines, -30 lines 0 comments Download
M Source/core/paint/ViewDisplayList.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/paint/ViewDisplayListTest.cpp View 4 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
pdr.
Created Revert of Enable fast/images with slimming paint
6 years ago (2014-11-26 03:49:21 UTC) #1
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/757183003/1
6 years ago (2014-11-26 03:49:49 UTC) #2
commit-bot: I haz the power
Failed to apply patch for Source/core/paint/BoxPainter.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years ago (2014-11-26 03:50:03 UTC) #4
pdr.
6 years ago (2014-11-26 03:51:47 UTC) #5
On 2014/11/26 at 03:50:03, commit-bot wrote:
> Failed to apply patch for Source/core/paint/BoxPainter.cpp:
> While running patch -p1 --forward --force --no-backup-if-mismatch;
>   patching file Source/core/paint/BoxPainter.cpp
>   Hunk #1 FAILED at 11.
>   Hunk #2 succeeded at 518 (offset 2 lines).
>   Hunk #3 succeeded at 526 (offset 2 lines).
>   Hunk #4 succeeded at 537 (offset 2 lines).
>   Hunk #5 succeeded at 545 (offset 2 lines).
>   1 out of 5 hunks FAILED -- saving rejects to file
Source/core/paint/BoxPainter.cpp.rej
> 
> Patch:       Source/core/paint/BoxPainter.cpp
> Index: Source/core/paint/BoxPainter.cpp
> diff --git a/Source/core/paint/BoxPainter.cpp
b/Source/core/paint/BoxPainter.cpp
> index
99926941043325b46783c8d48194132fb2eb90e7..152cb6cc691fe1f2aec53d1e0f06ff40e6458c91
100644
> --- a/Source/core/paint/BoxPainter.cpp
> +++ b/Source/core/paint/BoxPainter.cpp
> @@ -11,7 +11,6 @@
>  #include "core/paint/BackgroundImageGeometry.h"
>  #include "core/paint/BoxDecorationData.h"
>  #include "core/paint/DrawingRecorder.h"
> -#include "core/paint/TransparencyDisplayItem.h"
>  #include "core/rendering/ImageQualityController.h"
>  #include "core/rendering/PaintInfo.h"
>  #include "core/rendering/RenderBox.h"
> @@ -516,7 +515,7 @@
>  void BoxPainter::paintMaskImages(const PaintInfo& paintInfo, const
LayoutRect& paintRect)
>  {
>      // Figure out if we need to push a transparency layer to render our mask.
> -    OwnPtr<TransparencyRecorder> transparencyRecorder;
> +    bool pushTransparencyLayer = false;
>      bool compositedMask = m_renderBox.hasLayer() &&
m_renderBox.layer()->hasCompositedMask();
>      bool flattenCompositingLayers = m_renderBox.view()->frameView() &&
m_renderBox.view()->frameView()->paintBehavior() &
PaintBehaviorFlattenCompositingLayers;
>      CompositeOperator compositeOp = CompositeSourceOver;
> @@ -524,6 +523,7 @@
>      bool allMaskImagesLoaded = true;
>  
>      if (!compositedMask || flattenCompositingLayers) {
> +        pushTransparencyLayer = true;
>          StyleImage* maskBoxImage =
m_renderBox.style()->maskBoxImage().image();
>          const FillLayer& maskLayers = m_renderBox.style()->maskLayers();
>  
> @@ -534,9 +534,7 @@
>          allMaskImagesLoaded &= maskLayers.imagesAreLoaded();
>  
>          paintInfo.context->setCompositeOperation(CompositeDestinationIn);
> -
> -        transparencyRecorder = adoptPtr(new
TransparencyRecorder(paintInfo.context, &m_renderBox,
DisplayItem::BeginTransparency, WebBlendModeNormal, 1));
> -
> +        paintInfo.context->beginTransparencyLayer(1);
>          compositeOp = CompositeSourceOver;
>      }
>  
> @@ -544,6 +542,9 @@
>          paintFillLayers(paintInfo, Color::transparent,
m_renderBox.style()->maskLayers(), paintRect, BackgroundBleedNone, compositeOp);
>          paintNinePieceImage(m_renderBox, paintInfo.context, paintRect,
m_renderBox.style(), m_renderBox.style()->maskBoxImage(), compositeOp);
>      }
> +
> +    if (pushTransparencyLayer)
> +        paintInfo.context->endLayer();
>  }
>  
>  void BoxPainter::paintClippingMask(const PaintInfo& paintInfo, const
LayoutPoint& paintOffset)

I'll prepare a manual revert.

Powered by Google App Engine
This is Rietveld 408576698