Changeset 166675 in webkit
- Timestamp:
- Apr 2, 2014 4:29:12 PM (10 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r166672 r166675 1 2014-04-02 Tim Horton <timothy_horton@apple.com> 2 3 RemoteLayerBackingStore doesn't need to clear opaque layers 4 https://bugs.webkit.org/show_bug.cgi?id=131134 5 6 Reviewed by Simon Fraser. 7 8 * Shared/mac/RemoteLayerBackingStore.mm: 9 (WebKit::RemoteLayerBackingStore::display): 10 We don't need to clear opaque layers, because we'll paint 11 over the whole area. In addition, we should fill opaque layers 12 with a bright color in debug builds to make it very clear 13 that we've made a mistake (similar to what FrameView does). 14 1 15 2014-04-02 Anders Carlsson <andersca@apple.com> 2 16 -
trunk/Source/WebKit2/Shared/mac/RemoteLayerBackingStore.mm
r166607 r166675 180 180 scaledSize.scale(m_scale); 181 181 IntSize expandedScaledSize = expandedIntSize(scaledSize); 182 IntRect expandedScaledLayerBounds(IntPoint(), expandedScaledSize); 182 183 183 184 bool willPaintEntireBackingStore = m_dirtyRegion.contains(layerBounds); … … 196 197 197 198 GraphicsContext& context = m_frontSurface->ensureGraphicsContext(); 198 context.clearRect(FloatRect(FloatPoint(), expandedScaledSize)); 199 200 if (!m_isOpaque) 201 context.clearRect(expandedScaledLayerBounds); 202 203 #ifndef NDEBUG 204 if (m_isOpaque) 205 context.fillRect(expandedScaledLayerBounds, Color(255, 0, 0), ColorSpaceDeviceRGB); 206 #endif 207 199 208 context.scale(FloatSize(1, -1)); 200 209 context.translate(0, -expandedScaledSize.height());
Note: See TracChangeset
for help on using the changeset viewer.