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

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

Issue 1159113010: Optimized box border side painting order (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: forgot the new test 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 | « LayoutTests/fast/borders/border-mixed-alpha2-expected.txt ('k') | Source/core/paint/BoxBorderPainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/BoxBorderPainter.h
diff --git a/Source/core/paint/BoxBorderPainter.h b/Source/core/paint/BoxBorderPainter.h
index 69213564a0d67f2a02df52760a125559911820b8..9586e07ea48fdd3daa396f4b3c048f375601dc37 100644
--- a/Source/core/paint/BoxBorderPainter.h
+++ b/Source/core/paint/BoxBorderPainter.h
@@ -27,14 +27,16 @@ public:
void paintBorder(const PaintInfo&, const LayoutRect& borderRect) const;
private:
+ struct ComplexBorderInfo;
+
+ BorderEdgeFlags paintOpacityGroup(GraphicsContext*, const ComplexBorderInfo&, unsigned index,
+ float accumulatedOpacity) const;
+ void paintSide(GraphicsContext*, const ComplexBorderInfo&, BoxSide, unsigned alpha, BorderEdgeFlags) const;
+ void paintOneBorderSide(GraphicsContext*, const FloatRect& sideRect, BoxSide, BoxSide adjacentSide1,
+ BoxSide adjacentSide2, const Path*, bool antialias, Color, BorderEdgeFlags) const;
bool paintBorderFastPath(GraphicsContext*, const LayoutRect& borderRect) const;
void drawDoubleBorder(GraphicsContext*, const LayoutRect& borderRect) const;
- void paintTranslucentBorderSides(GraphicsContext*, bool antialias) const;
- void paintOneBorderSide(GraphicsContext*, const FloatRect& sideRect, BoxSide, BoxSide adjacentSide1,
- BoxSide adjacentSide2, const Path*, bool antialias, const Color* overrideColor) const;
- void paintBorderSides(GraphicsContext*, BorderEdgeFlags edgeSet, bool antialias,
- const Color* overrideColor = 0) const;
void drawBoxSideFromPath(GraphicsContext*, const LayoutRect&, const Path&, float thickness,
float drawThickness, BoxSide, Color, EBorderStyle) const;
void clipBorderSidePolygon(GraphicsContext*, BoxSide, bool firstEdgeMatches,
@@ -65,6 +67,7 @@ private:
bool m_isUniformStyle;
bool m_isUniformWidth;
bool m_isUniformColor;
+ bool m_isRounded;
bool m_hasAlpha;
};
« no previous file with comments | « LayoutTests/fast/borders/border-mixed-alpha2-expected.txt ('k') | Source/core/paint/BoxBorderPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698