OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009, 2010 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 860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
871 } | 871 } |
872 | 872 |
873 void DeprecatedPaintLayerCompositor::resetTrackedPaintInvalidationRects() | 873 void DeprecatedPaintLayerCompositor::resetTrackedPaintInvalidationRects() |
874 { | 874 { |
875 if (GraphicsLayer* rootLayer = rootGraphicsLayer()) | 875 if (GraphicsLayer* rootLayer = rootGraphicsLayer()) |
876 resetTrackedPaintInvalidationRectsRecursive(rootLayer); | 876 resetTrackedPaintInvalidationRectsRecursive(rootLayer); |
877 } | 877 } |
878 | 878 |
879 void DeprecatedPaintLayerCompositor::setTracksPaintInvalidations(bool tracksPain
tInvalidations) | 879 void DeprecatedPaintLayerCompositor::setTracksPaintInvalidations(bool tracksPain
tInvalidations) |
880 { | 880 { |
881 ASSERT(lifecycle().state() == | 881 #if ENABLE(ASSERT) |
882 (RuntimeEnabledFeatures::slimmingPaintV2Enabled() | 882 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) { |
883 ? DocumentLifecycle::CompositingForSlimmingPaintV2Clean : DocumentLi
fecycle::PaintInvalidationClean)); | 883 ASSERT(lifecycle().state() == DocumentLifecycle::CompositingForSlimmingP
aintV2Clean |
| 884 // TODO(wangxianzhu): Remove this when we remove the old path for sp
v2. |
| 885 || lifecycle().state() == DocumentLifecycle::PaintInvalidationClean)
; |
| 886 } else { |
| 887 ASSERT(lifecycle().state() == DocumentLifecycle::PaintInvalidationClean)
; |
| 888 } |
| 889 #endif |
| 890 |
884 m_isTrackingPaintInvalidations = tracksPaintInvalidations; | 891 m_isTrackingPaintInvalidations = tracksPaintInvalidations; |
885 } | 892 } |
886 | 893 |
887 bool DeprecatedPaintLayerCompositor::isTrackingPaintInvalidations() const | 894 bool DeprecatedPaintLayerCompositor::isTrackingPaintInvalidations() const |
888 { | 895 { |
889 return m_isTrackingPaintInvalidations; | 896 return m_isTrackingPaintInvalidations; |
890 } | 897 } |
891 | 898 |
892 bool DeprecatedPaintLayerCompositor::requiresHorizontalScrollbarLayer() const | 899 bool DeprecatedPaintLayerCompositor::requiresHorizontalScrollbarLayer() const |
893 { | 900 { |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1201 } else if (graphicsLayer == m_scrollLayer.get()) { | 1208 } else if (graphicsLayer == m_scrollLayer.get()) { |
1202 name = "LocalFrame Scrolling Layer"; | 1209 name = "LocalFrame Scrolling Layer"; |
1203 } else { | 1210 } else { |
1204 ASSERT_NOT_REACHED(); | 1211 ASSERT_NOT_REACHED(); |
1205 } | 1212 } |
1206 | 1213 |
1207 return name; | 1214 return name; |
1208 } | 1215 } |
1209 | 1216 |
1210 } // namespace blink | 1217 } // namespace blink |
OLD | NEW |