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

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

Issue 1913973002: Use-count composited reflection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 8 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 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 if (hasClippingLayer()) 505 if (hasClippingLayer())
506 clippingLayer()->setMaskLayer(layerToApplyChildClippingMask == clippingL ayer() ? m_childClippingMaskLayer.get() : nullptr); 506 clippingLayer()->setMaskLayer(layerToApplyChildClippingMask == clippingL ayer() ? m_childClippingMaskLayer.get() : nullptr);
507 if (hasScrollingLayer()) 507 if (hasScrollingLayer())
508 scrollingLayer()->setMaskLayer(layerToApplyChildClippingMask == scrollin gLayer() ? m_childClippingMaskLayer.get() : nullptr); 508 scrollingLayer()->setMaskLayer(layerToApplyChildClippingMask == scrollin gLayer() ? m_childClippingMaskLayer.get() : nullptr);
509 m_graphicsLayer->setContentsClippingMaskLayer(shouldApplyChildClippingMaskOn Contents ? m_childClippingMaskLayer.get() : nullptr); 509 m_graphicsLayer->setContentsClippingMaskLayer(shouldApplyChildClippingMaskOn Contents ? m_childClippingMaskLayer.get() : nullptr);
510 510
511 if (m_owningLayer.reflectionInfo() && !RuntimeEnabledFeatures::cssBoxReflect FilterEnabled()) { 511 if (m_owningLayer.reflectionInfo() && !RuntimeEnabledFeatures::cssBoxReflect FilterEnabled()) {
512 if (m_owningLayer.reflectionInfo()->reflectionLayer()->hasCompositedLaye rMapping()) { 512 if (m_owningLayer.reflectionInfo()->reflectionLayer()->hasCompositedLaye rMapping()) {
513 GraphicsLayer* reflectionLayer = m_owningLayer.reflectionInfo()->ref lectionLayer()->compositedLayerMapping()->mainGraphicsLayer(); 513 GraphicsLayer* reflectionLayer = m_owningLayer.reflectionInfo()->ref lectionLayer()->compositedLayerMapping()->mainGraphicsLayer();
514 m_graphicsLayer->setReplicatedByLayer(reflectionLayer); 514 m_graphicsLayer->setReplicatedByLayer(reflectionLayer);
515 UseCounter::count(m_owningLayer.layoutObject()->document(), UseCount er::CompositedReplication);
515 } 516 }
516 } else { 517 } else {
517 m_graphicsLayer->setReplicatedByLayer(nullptr); 518 m_graphicsLayer->setReplicatedByLayer(nullptr);
518 } 519 }
519 520
520 updateBackgroundColor(); 521 updateBackgroundColor();
521 522
522 if (layoutObject->isImage()) { 523 if (layoutObject->isImage()) {
523 if (isDirectlyCompositedImage()) { 524 if (isDirectlyCompositedImage()) {
524 updateImageContents(); 525 updateImageContents();
(...skipping 2050 matching lines...) Expand 10 before | Expand all | Expand 10 after
2575 } else if (graphicsLayer == m_scrollingContentsLayer.get()) { 2576 } else if (graphicsLayer == m_scrollingContentsLayer.get()) {
2576 name = "Scrolling Contents Layer"; 2577 name = "Scrolling Contents Layer";
2577 } else { 2578 } else {
2578 ASSERT_NOT_REACHED(); 2579 ASSERT_NOT_REACHED();
2579 } 2580 }
2580 2581
2581 return name; 2582 return name;
2582 } 2583 }
2583 2584
2584 } // namespace blink 2585 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698