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 17 matching lines...) Expand all Loading... |
28 #include "core/rendering/compositing/RenderLayerCompositor.h" | 28 #include "core/rendering/compositing/RenderLayerCompositor.h" |
29 | 29 |
30 #include "core/animation/DocumentAnimations.h" | 30 #include "core/animation/DocumentAnimations.h" |
31 #include "core/dom/Fullscreen.h" | 31 #include "core/dom/Fullscreen.h" |
32 #include "core/frame/FrameView.h" | 32 #include "core/frame/FrameView.h" |
33 #include "core/frame/LocalFrame.h" | 33 #include "core/frame/LocalFrame.h" |
34 #include "core/frame/Settings.h" | 34 #include "core/frame/Settings.h" |
35 #include "core/html/HTMLIFrameElement.h" | 35 #include "core/html/HTMLIFrameElement.h" |
36 #include "core/inspector/InspectorInstrumentation.h" | 36 #include "core/inspector/InspectorInstrumentation.h" |
37 #include "core/inspector/InspectorNodeIds.h" | 37 #include "core/inspector/InspectorNodeIds.h" |
| 38 #include "core/inspector/InspectorTraceEvents.h" |
38 #include "core/page/Chrome.h" | 39 #include "core/page/Chrome.h" |
39 #include "core/page/ChromeClient.h" | 40 #include "core/page/ChromeClient.h" |
40 #include "core/page/Page.h" | 41 #include "core/page/Page.h" |
41 #include "core/page/scrolling/ScrollingCoordinator.h" | 42 #include "core/page/scrolling/ScrollingCoordinator.h" |
42 #include "core/rendering/RenderEmbeddedObject.h" | 43 #include "core/rendering/RenderEmbeddedObject.h" |
43 #include "core/rendering/RenderLayerStackingNode.h" | 44 #include "core/rendering/RenderLayerStackingNode.h" |
44 #include "core/rendering/RenderLayerStackingNodeIterator.h" | 45 #include "core/rendering/RenderLayerStackingNodeIterator.h" |
45 #include "core/rendering/RenderPart.h" | 46 #include "core/rendering/RenderPart.h" |
46 #include "core/rendering/RenderVideo.h" | 47 #include "core/rendering/RenderVideo.h" |
47 #include "core/rendering/RenderView.h" | 48 #include "core/rendering/RenderView.h" |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 if (!hasAcceleratedCompositing()) { | 305 if (!hasAcceleratedCompositing()) { |
305 updateWithoutAcceleratedCompositing(updateType); | 306 updateWithoutAcceleratedCompositing(updateType); |
306 return; | 307 return; |
307 } | 308 } |
308 | 309 |
309 if (updateType == CompositingUpdateNone) | 310 if (updateType == CompositingUpdateNone) |
310 return; | 311 return; |
311 | 312 |
312 RenderLayer* updateRoot = rootRenderLayer(); | 313 RenderLayer* updateRoot = rootRenderLayer(); |
313 | 314 |
314 Vector<RenderLayer*> layersNeedingPaintInvalidation; | 315 LayersNeedingPaintInvalidation layersNeedingPaintInvalidation; |
315 | 316 |
316 if (updateType >= CompositingUpdateAfterCompositingInputChange) { | 317 if (updateType >= CompositingUpdateAfterCompositingInputChange) { |
317 CompositingInputsUpdater(updateRoot).update(); | 318 CompositingInputsUpdater(updateRoot).update(); |
318 | 319 |
319 #if ENABLE(ASSERT) | 320 #if ENABLE(ASSERT) |
320 // FIXME: Move this check to the end of the compositing update. | 321 // FIXME: Move this check to the end of the compositing update. |
321 CompositingInputsUpdater::assertNeedsCompositingInputsUpdateBitsCleared(
updateRoot); | 322 CompositingInputsUpdater::assertNeedsCompositingInputsUpdateBitsCleared(
updateRoot); |
322 #endif | 323 #endif |
323 | 324 |
324 CompositingRequirementsUpdater(m_renderView, m_compositingReasonFinder).
update(updateRoot); | 325 CompositingRequirementsUpdater(m_renderView, m_compositingReasonFinder).
update(updateRoot); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 if (RuntimeEnabledFeatures::overlayFullscreenVideoEnabled()) | 371 if (RuntimeEnabledFeatures::overlayFullscreenVideoEnabled()) |
371 applyOverlayFullscreenVideoAdjustment(); | 372 applyOverlayFullscreenVideoAdjustment(); |
372 } | 373 } |
373 | 374 |
374 if (m_needsUpdateFixedBackground) { | 375 if (m_needsUpdateFixedBackground) { |
375 rootFixedBackgroundsChanged(); | 376 rootFixedBackgroundsChanged(); |
376 m_needsUpdateFixedBackground = false; | 377 m_needsUpdateFixedBackground = false; |
377 } | 378 } |
378 | 379 |
379 for (unsigned i = 0; i < layersNeedingPaintInvalidation.size(); i++) { | 380 for (unsigned i = 0; i < layersNeedingPaintInvalidation.size(); i++) { |
380 RenderLayer* layer = layersNeedingPaintInvalidation[i]; | 381 RenderLayer* layer = layersNeedingPaintInvalidation[i].first; |
| 382 TRACE_EVENT_INSTANT1( |
| 383 TRACE_DISABLED_BY_DEFAULT("devtools.timeline.invalidationTracking"), |
| 384 "LayerInvalidationTracking", |
| 385 "data", |
| 386 InspectorLayerInvalidationTrackingEvent::data(layer->renderer()->con
tainerForPaintInvalidation(), layersNeedingPaintInvalidation[i].second)); |
381 layer->paintInvalidator().computePaintInvalidationRectsIncludingNonCompo
sitingDescendants(); | 387 layer->paintInvalidator().computePaintInvalidationRectsIncludingNonCompo
sitingDescendants(); |
382 | 388 |
383 paintInvalidationOnCompositingChange(layer); | 389 paintInvalidationOnCompositingChange(layer); |
384 } | 390 } |
385 | 391 |
386 // Inform the inspector that the layer tree has changed. | 392 // Inform the inspector that the layer tree has changed. |
387 if (m_renderView.frame()->isMainFrame()) | 393 if (m_renderView.frame()->isMainFrame()) |
388 InspectorInstrumentation::layerTreeDidChange(m_renderView.frame()); | 394 InspectorInstrumentation::layerTreeDidChange(m_renderView.frame()); |
389 } | 395 } |
390 | 396 |
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1171 } else if (graphicsLayer == m_scrollLayer.get()) { | 1177 } else if (graphicsLayer == m_scrollLayer.get()) { |
1172 name = "LocalFrame Scrolling Layer"; | 1178 name = "LocalFrame Scrolling Layer"; |
1173 } else { | 1179 } else { |
1174 ASSERT_NOT_REACHED(); | 1180 ASSERT_NOT_REACHED(); |
1175 } | 1181 } |
1176 | 1182 |
1177 return name; | 1183 return name; |
1178 } | 1184 } |
1179 | 1185 |
1180 } // namespace blink | 1186 } // namespace blink |
OLD | NEW |