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

Side by Side Diff: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp

Issue 1420863003: Use the original paint invalidation path for sync painting v1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 /* 1 /*
2 * Copyright (C) 2009, 2010, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2009, 2010, 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 2012 matching lines...) Expand 10 before | Expand all | Expand 10 after
2023 } 2023 }
2024 } 2024 }
2025 2025
2026 IntRect r; 2026 IntRect r;
2027 PaintInvalidationReason invalidationReason; 2027 PaintInvalidationReason invalidationReason;
2028 }; 2028 };
2029 2029
2030 // r is in the coordinate space of the layer's layout object 2030 // r is in the coordinate space of the layer's layout object
2031 void CompositedLayerMapping::setContentsNeedDisplayInRect(const LayoutRect& r, P aintInvalidationReason invalidationReason) 2031 void CompositedLayerMapping::setContentsNeedDisplayInRect(const LayoutRect& r, P aintInvalidationReason invalidationReason)
2032 { 2032 {
2033 ASSERT(!RuntimeEnabledFeatures::slimmingPaintSynchronizedPaintingEnabled()); 2033 ASSERT(!RuntimeEnabledFeatures::slimmingPaintV2Enabled());
2034 SetContentsNeedsDisplayInRectFunctor functor = { 2034 SetContentsNeedsDisplayInRectFunctor functor = {
2035 enclosingIntRect(LayoutRect(r.location() + m_owningLayer.subpixelAccumul ation(), r.size())), 2035 enclosingIntRect(LayoutRect(r.location() + m_owningLayer.subpixelAccumul ation(), r.size())),
2036 invalidationReason 2036 invalidationReason
2037 }; 2037 };
2038 ApplyToGraphicsLayers(this, functor, ApplyToContentLayers); 2038 ApplyToGraphicsLayers(this, functor, ApplyToContentLayers);
2039 } 2039 }
2040 2040
2041 void CompositedLayerMapping::invalidateDisplayItemClient(const DisplayItemClient Wrapper& displayItemClient, PaintInvalidationReason paintInvalidationReason, con st LayoutRect& previousPaintInvalidationRect, const LayoutRect& newPaintInvalida tionRect) 2041 void CompositedLayerMapping::invalidateDisplayItemClient(const DisplayItemClient Wrapper& displayItemClient, PaintInvalidationReason paintInvalidationReason, con st LayoutRect& previousPaintInvalidationRect, const LayoutRect& newPaintInvalida tionRect)
2042 { 2042 {
2043 ApplyToGraphicsLayers(this, [&displayItemClient, paintInvalidationReason, pr eviousPaintInvalidationRect, newPaintInvalidationRect](GraphicsLayer* layer) { 2043 ApplyToGraphicsLayers(this, [&displayItemClient, paintInvalidationReason, pr eviousPaintInvalidationRect, newPaintInvalidationRect](GraphicsLayer* layer) {
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
2428 } else if (graphicsLayer == m_scrollingBlockSelectionLayer.get()) { 2428 } else if (graphicsLayer == m_scrollingBlockSelectionLayer.get()) {
2429 name = "Scrolling Block Selection Layer"; 2429 name = "Scrolling Block Selection Layer";
2430 } else { 2430 } else {
2431 ASSERT_NOT_REACHED(); 2431 ASSERT_NOT_REACHED();
2432 } 2432 }
2433 2433
2434 return name; 2434 return name;
2435 } 2435 }
2436 2436
2437 } // namespace blink 2437 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698