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

Side by Side Diff: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp

Issue 1922393002: CC Animation: Unify ElementId in Blink Compositor Worker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@player
Patch Set: Remove NextElementId. Created 4 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2010, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2009, 2010, 2011 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 1476 matching lines...) Expand 10 before | Expand all | Expand 10 after
1487 } 1487 }
1488 } 1488 }
1489 1489
1490 void CompositedLayerMapping::updateElementIdAndCompositorMutableProperties() 1490 void CompositedLayerMapping::updateElementIdAndCompositorMutableProperties()
1491 { 1491 {
1492 if (!RuntimeEnabledFeatures::compositorWorkerEnabled()) 1492 if (!RuntimeEnabledFeatures::compositorWorkerEnabled())
1493 return; 1493 return;
1494 1494
1495 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("compositor-worker"), "CompositedLaye rMapping::updateElementId()"); 1495 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("compositor-worker"), "CompositedLaye rMapping::updateElementId()");
1496 1496
1497 uint64_t elementId = 0; 1497 CompositorElementId elementId = 0;
1498 uint32_t mainMutableProperties = CompositorMutableProperty::kNone; 1498 uint32_t mainMutableProperties = CompositorMutableProperty::kNone;
1499 uint32_t scrollMutableProperties = CompositorMutableProperty::kNone; 1499 uint32_t scrollMutableProperties = CompositorMutableProperty::kNone;
1500 1500
1501 if (m_owningLayer.layoutObject()->style()->hasCompositorProxy()) { 1501 if (m_owningLayer.layoutObject()->style()->hasCompositorProxy()) {
1502 if (Node* owningNode = m_owningLayer.layoutObject()->generatingNode()) { 1502 if (Node* owningNode = m_owningLayer.layoutObject()->generatingNode()) {
1503 if (owningNode->isElementNode()) { 1503 if (owningNode->isElementNode()) {
1504 Element* owningElement = toElement(owningNode); 1504 Element* owningElement = toElement(owningNode);
1505 uint32_t compositorMutableProperties = owningElement->compositor MutableProperties(); 1505 uint32_t compositorMutableProperties = owningElement->compositor MutableProperties();
1506 elementId = DOMNodeIds::idForNode(owningNode); 1506 elementId = DOMNodeIds::idForNode(owningNode);
1507 mainMutableProperties = (CompositorMutableProperty::kOpacity | C ompositorMutableProperty::kTransform) & compositorMutableProperties; 1507 mainMutableProperties = (CompositorMutableProperty::kOpacity | C ompositorMutableProperty::kTransform) & compositorMutableProperties;
(...skipping 1064 matching lines...) Expand 10 before | Expand all | Expand 10 after
2572 } else if (graphicsLayer == m_scrollingContentsLayer.get()) { 2572 } else if (graphicsLayer == m_scrollingContentsLayer.get()) {
2573 name = "Scrolling Contents Layer"; 2573 name = "Scrolling Contents Layer";
2574 } else { 2574 } else {
2575 ASSERT_NOT_REACHED(); 2575 ASSERT_NOT_REACHED();
2576 } 2576 }
2577 2577
2578 return name; 2578 return name;
2579 } 2579 }
2580 2580
2581 } // namespace blink 2581 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698