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

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

Issue 2205783002: Basic support for backface visibility in spv2 with --layer-lists (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | no next file » | 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/display_item_list.h" 10 #include "cc/playback/display_item_list.h"
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698