| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "platform/graphics/compositing/PaintArtifactCompositor.h" | 5 #include "platform/graphics/compositing/PaintArtifactCompositor.h" |
| 6 | 6 |
| 7 #include "cc/layers/content_layer_client.h" | 7 #include "cc/layers/content_layer_client.h" |
| 8 #include "cc/layers/layer.h" | 8 #include "cc/layers/layer.h" |
| 9 #include "cc/layers/picture_layer.h" | 9 #include "cc/layers/picture_layer.h" |
| 10 #include "cc/playback/display_item_list.h" | 10 #include "cc/playback/display_item_list.h" |
| (...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 584 layer->set_property_tree_sequence_number(kPropertyTreeSequenceNumber); | 584 layer->set_property_tree_sequence_number(kPropertyTreeSequenceNumber); |
| 585 layer->SetTransformTreeIndex(transformId); | 585 layer->SetTransformTreeIndex(transformId); |
| 586 layer->SetClipTreeIndex(clipId); | 586 layer->SetClipTreeIndex(clipId); |
| 587 layer->SetEffectTreeIndex(effectId); | 587 layer->SetEffectTreeIndex(effectId); |
| 588 layer->SetScrollTreeIndex(kRealRootNodeId); | 588 layer->SetScrollTreeIndex(kRealRootNodeId); |
| 589 | 589 |
| 590 // TODO(jbroman): This probably shouldn't be necessary, but it is still | 590 // TODO(jbroman): This probably shouldn't be necessary, but it is still |
| 591 // queried by RenderSurfaceImpl. | 591 // queried by RenderSurfaceImpl. |
| 592 layer->Set3dSortingContextId(host->property_trees()->transform_tree.Node
(transformId)->sorting_context_id); | 592 layer->Set3dSortingContextId(host->property_trees()->transform_tree.Node
(transformId)->sorting_context_id); |
| 593 | 593 |
| 594 layer->SetShouldCheckBackfaceVisibility(paintChunk.properties.backfaceHi
dden); |
| 595 |
| 594 if (m_extraDataForTestingEnabled) | 596 if (m_extraDataForTestingEnabled) |
| 595 m_extraDataForTesting->contentLayers.append(layer); | 597 m_extraDataForTesting->contentLayers.append(layer); |
| 596 } | 598 } |
| 597 | 599 |
| 598 // Mark the property trees as having been rebuilt. | 600 // Mark the property trees as having been rebuilt. |
| 599 host->property_trees()->sequence_number = kPropertyTreeSequenceNumber; | 601 host->property_trees()->sequence_number = kPropertyTreeSequenceNumber; |
| 600 host->property_trees()->needs_rebuild = false; | 602 host->property_trees()->needs_rebuild = false; |
| 601 } | 603 } |
| 602 | 604 |
| 603 } // namespace blink | 605 } // namespace blink |
| OLD | NEW |