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

Side by Side Diff: Source/core/rendering/RenderLayerBacking.cpp

Issue 16878004: DevTools: add instrumentation for deferred canvas rasterization (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
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 1635 matching lines...) Expand 10 before | Expand all | Expand 10 after
1646 context.restore(); 1646 context.restore();
1647 } 1647 }
1648 1648
1649 // Up-call from compositing layer drawing callback. 1649 // Up-call from compositing layer drawing callback.
1650 void RenderLayerBacking::paintContents(const GraphicsLayer* graphicsLayer, Graph icsContext& context, GraphicsLayerPaintingPhase paintingPhase, const IntRect& cl ip) 1650 void RenderLayerBacking::paintContents(const GraphicsLayer* graphicsLayer, Graph icsContext& context, GraphicsLayerPaintingPhase paintingPhase, const IntRect& cl ip)
1651 { 1651 {
1652 #ifndef NDEBUG 1652 #ifndef NDEBUG
1653 if (Page* page = renderer()->frame()->page()) 1653 if (Page* page = renderer()->frame()->page())
1654 page->setIsPainting(true); 1654 page->setIsPainting(true);
1655 #endif 1655 #endif
1656
1657 if (graphicsLayer == m_graphicsLayer.get() 1656 if (graphicsLayer == m_graphicsLayer.get()
1658 || graphicsLayer == m_foregroundLayer.get() 1657 || graphicsLayer == m_foregroundLayer.get()
1659 || graphicsLayer == m_backgroundLayer.get() 1658 || graphicsLayer == m_backgroundLayer.get()
1660 || graphicsLayer == m_maskLayer.get() 1659 || graphicsLayer == m_maskLayer.get()
1661 || graphicsLayer == m_scrollingContentsLayer.get()) { 1660 || graphicsLayer == m_scrollingContentsLayer.get()) {
1662 InspectorInstrumentation::willPaint(renderer()); 1661 InspectorInstrumentation::willPaint(renderer());
1663 1662
1664 // The dirtyRect is in the coords of the painting root. 1663 // The dirtyRect is in the coords of the painting root.
1665 IntRect dirtyRect = clip; 1664 IntRect dirtyRect = clip;
1666 if (!(paintingPhase & GraphicsLayerPaintOverflowContents)) 1665 if (!(paintingPhase & GraphicsLayerPaintOverflowContents))
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
1963 info.addMember(m_childContainmentLayer, "childContainmentLayer"); 1962 info.addMember(m_childContainmentLayer, "childContainmentLayer");
1964 info.addMember(m_maskLayer, "maskLayer"); 1963 info.addMember(m_maskLayer, "maskLayer");
1965 info.addMember(m_layerForHorizontalScrollbar, "layerForHorizontalScrollbar") ; 1964 info.addMember(m_layerForHorizontalScrollbar, "layerForHorizontalScrollbar") ;
1966 info.addMember(m_layerForVerticalScrollbar, "layerForVerticalScrollbar"); 1965 info.addMember(m_layerForVerticalScrollbar, "layerForVerticalScrollbar");
1967 info.addMember(m_layerForScrollCorner, "layerForScrollCorner"); 1966 info.addMember(m_layerForScrollCorner, "layerForScrollCorner");
1968 info.addMember(m_scrollingLayer, "scrollingLayer"); 1967 info.addMember(m_scrollingLayer, "scrollingLayer");
1969 info.addMember(m_scrollingContentsLayer, "scrollingContentsLayer"); 1968 info.addMember(m_scrollingContentsLayer, "scrollingContentsLayer");
1970 } 1969 }
1971 1970
1972 } // namespace WebCore 1971 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698