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

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

Issue 1946403003: Add fixed raster scale use counter histograms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase+fix 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 538 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 layerConfigChanged = true; 549 layerConfigChanged = true;
550 } 550 }
551 551
552 // Changes to either the internal hierarchy or the mask layer have an impact 552 // Changes to either the internal hierarchy or the mask layer have an impact
553 // on painting phases, so we need to update when either are updated. 553 // on painting phases, so we need to update when either are updated.
554 if (layerConfigChanged || maskLayerChanged) 554 if (layerConfigChanged || maskLayerChanged)
555 updatePaintingPhases(); 555 updatePaintingPhases();
556 556
557 updateElementIdAndCompositorMutableProperties(); 557 updateElementIdAndCompositorMutableProperties();
558 558
559 m_graphicsLayer->setHasWillChangeTransformHint(m_owningLayer.layoutObject()- >styleRef().hasWillChangeTransformHint());
560
559 return layerConfigChanged; 561 return layerConfigChanged;
560 } 562 }
561 563
562 static IntRect clipBox(LayoutBox* layoutObject) 564 static IntRect clipBox(LayoutBox* layoutObject)
563 { 565 {
564 LayoutRect result = LayoutRect(LayoutRect::infiniteIntRect()); 566 LayoutRect result = LayoutRect(LayoutRect::infiniteIntRect());
565 if (layoutObject->hasOverflowClip() || layoutObject->style()->containsPaint( )) 567 if (layoutObject->hasOverflowClip() || layoutObject->style()->containsPaint( ))
566 result = layoutObject->overflowClipRect(LayoutPoint()); 568 result = layoutObject->overflowClipRect(LayoutPoint());
567 569
568 if (layoutObject->hasClip()) 570 if (layoutObject->hasClip())
(...skipping 2004 matching lines...) Expand 10 before | Expand all | Expand 10 after
2573 } else if (graphicsLayer == m_scrollingContentsLayer.get()) { 2575 } else if (graphicsLayer == m_scrollingContentsLayer.get()) {
2574 name = "Scrolling Contents Layer"; 2576 name = "Scrolling Contents Layer";
2575 } else { 2577 } else {
2576 ASSERT_NOT_REACHED(); 2578 ASSERT_NOT_REACHED();
2577 } 2579 }
2578 2580
2579 return name; 2581 return name;
2580 } 2582 }
2581 2583
2582 } // namespace blink 2584 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.h ('k') | third_party/WebKit/Source/platform/graphics/GraphicsLayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698