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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp

Issue 2643203002: Rewrite blink->cc scroll offset logic for SPV2 (Closed)
Patch Set: Move code back under updateScrollOffset Created 3 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositorTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/compositing_display_item.h" 10 #include "cc/playback/compositing_display_item.h"
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 710
711 int transformId = propertyTreeManager.ensureCompositorTransformNode( 711 int transformId = propertyTreeManager.ensureCompositorTransformNode(
712 pendingLayer.propertyTreeState.transform()); 712 pendingLayer.propertyTreeState.transform());
713 int scrollId = propertyTreeManager.ensureCompositorScrollNode( 713 int scrollId = propertyTreeManager.ensureCompositorScrollNode(
714 pendingLayer.propertyTreeState.scroll()); 714 pendingLayer.propertyTreeState.scroll());
715 int clipId = propertyTreeManager.ensureCompositorClipNode( 715 int clipId = propertyTreeManager.ensureCompositorClipNode(
716 pendingLayer.propertyTreeState.clip()); 716 pendingLayer.propertyTreeState.clip());
717 int effectId = propertyTreeManager.switchToEffectNode( 717 int effectId = propertyTreeManager.switchToEffectNode(
718 *pendingLayer.propertyTreeState.effect()); 718 *pendingLayer.propertyTreeState.effect());
719 719
720 propertyTreeManager.updateScrollOffset(layer->id(), scrollId); 720 propertyTreeManager.updateScrollOffset(
721 pendingLayer.propertyTreeState.scroll());
721 722
722 layer->set_offset_to_transform_parent(layerOffset); 723 layer->set_offset_to_transform_parent(layerOffset);
723 layer->SetElementId(pendingLayer.propertyTreeState.compositorElementId()); 724 layer->SetElementId(pendingLayer.propertyTreeState.compositorElementId());
724 725
725 m_rootLayer->AddChild(layer); 726 m_rootLayer->AddChild(layer);
726 layer->set_property_tree_sequence_number( 727 layer->set_property_tree_sequence_number(
727 PropertyTreeManager::kPropertyTreeSequenceNumber); 728 PropertyTreeManager::kPropertyTreeSequenceNumber);
728 layer->SetTransformTreeIndex(transformId); 729 layer->SetTransformTreeIndex(transformId);
729 layer->SetClipTreeIndex(clipId); 730 layer->SetClipTreeIndex(clipId);
730 layer->SetEffectTreeIndex(effectId); 731 layer->SetEffectTreeIndex(effectId);
(...skipping 17 matching lines...) Expand all
748 #ifndef NDEBUG 749 #ifndef NDEBUG
749 void PaintArtifactCompositor::showDebugData() { 750 void PaintArtifactCompositor::showDebugData() {
750 LOG(ERROR) << layersAsJSON(LayerTreeIncludesDebugInfo) 751 LOG(ERROR) << layersAsJSON(LayerTreeIncludesDebugInfo)
751 ->toPrettyJSONString() 752 ->toPrettyJSONString()
752 .utf8() 753 .utf8()
753 .data(); 754 .data();
754 } 755 }
755 #endif 756 #endif
756 757
757 } // namespace blink 758 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositorTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698