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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintLayerPainter.h

Issue 2588853002: Fix border radius on composited children. (Closed)
Patch Set: SPV2 expectations Created 3 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PaintLayerPainter_h 5 #ifndef PaintLayerPainter_h
6 #define PaintLayerPainter_h 6 #define PaintLayerPainter_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/paint/PaintLayerFragment.h" 9 #include "core/paint/PaintLayerFragment.h"
10 #include "core/paint/PaintLayerPaintingInfo.h" 10 #include "core/paint/PaintLayerPaintingInfo.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 PaintLayerFlags); 125 PaintLayerFlags);
126 void paintMaskForFragments(const PaintLayerFragments&, 126 void paintMaskForFragments(const PaintLayerFragments&,
127 GraphicsContext&, 127 GraphicsContext&,
128 const PaintLayerPaintingInfo&, 128 const PaintLayerPaintingInfo&,
129 PaintLayerFlags); 129 PaintLayerFlags);
130 void paintChildClippingMaskForFragments(const PaintLayerFragments&, 130 void paintChildClippingMaskForFragments(const PaintLayerFragments&,
131 GraphicsContext&, 131 GraphicsContext&,
132 const PaintLayerPaintingInfo&, 132 const PaintLayerPaintingInfo&,
133 PaintLayerFlags); 133 PaintLayerFlags);
134 134
135 void fillMaskingFragment(GraphicsContext&, const ClipRect&);
136
135 static bool needsToClip(const PaintLayerPaintingInfo& localPaintingInfo, 137 static bool needsToClip(const PaintLayerPaintingInfo& localPaintingInfo,
136 const ClipRect&); 138 const ClipRect&);
137 139
138 // Returns whether this layer should be painted during sofware painting (i.e., 140 // Returns whether this layer should be painted during sofware painting (i.e.,
139 // not via calls from CompositedLayerMapping to draw into composited layers). 141 // not via calls from CompositedLayerMapping to draw into composited layers).
140 bool shouldPaintLayerInSoftwareMode(const GlobalPaintFlags, 142 bool shouldPaintLayerInSoftwareMode(const GlobalPaintFlags,
141 PaintLayerFlags paintFlags); 143 PaintLayerFlags paintFlags);
142 144
143 // Returns true if the painted output of this PaintLayer and its children is 145 // Returns true if the painted output of this PaintLayer and its children is
144 // invisible and therefore can't impact painted output. 146 // invisible and therefore can't impact painted output.
145 bool paintedOutputInvisible(const PaintLayerPaintingInfo&); 147 bool paintedOutputInvisible(const PaintLayerPaintingInfo&);
146 148
147 PaintLayer& m_paintLayer; 149 PaintLayer& m_paintLayer;
148 150
149 FRIEND_TEST_ALL_PREFIXES(PaintLayerPainterTest, DontPaintWithTinyOpacity); 151 FRIEND_TEST_ALL_PREFIXES(PaintLayerPainterTest, DontPaintWithTinyOpacity);
150 FRIEND_TEST_ALL_PREFIXES(PaintLayerPainterTest, 152 FRIEND_TEST_ALL_PREFIXES(PaintLayerPainterTest,
151 DontPaintWithTinyOpacityAndBackdropFilter); 153 DontPaintWithTinyOpacityAndBackdropFilter);
152 FRIEND_TEST_ALL_PREFIXES(PaintLayerPainterTest, 154 FRIEND_TEST_ALL_PREFIXES(PaintLayerPainterTest,
153 DoPaintWithCompositedTinyOpacity); 155 DoPaintWithCompositedTinyOpacity);
154 FRIEND_TEST_ALL_PREFIXES(PaintLayerPainterTest, DoPaintWithNonTinyOpacity); 156 FRIEND_TEST_ALL_PREFIXES(PaintLayerPainterTest, DoPaintWithNonTinyOpacity);
155 }; 157 };
156 158
157 } // namespace blink 159 } // namespace blink
158 160
159 #endif // PaintLayerPainter_h 161 #endif // PaintLayerPainter_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/LayerClipRecorder.cpp ('k') | third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698