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

Side by Side Diff: sky/engine/core/rendering/RenderLayer.cpp

Issue 851473005: Trace RenderLayer::paint (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
5 * 5 *
6 * Other contributors: 6 * Other contributors:
7 * Robert O'Callahan <roc+@cs.cmu.edu> 7 * Robert O'Callahan <roc+@cs.cmu.edu>
8 * David Baron <dbaron@fas.harvard.edu> 8 * David Baron <dbaron@fas.harvard.edu>
9 * Christian Biesinger <cbiesinger@web.de> 9 * Christian Biesinger <cbiesinger@web.de>
10 * Randall Jesup <rjesup@wgate.com> 10 * Randall Jesup <rjesup@wgate.com>
(...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after
821 m_scrollableArea = nullptr; 821 m_scrollableArea = nullptr;
822 } 822 }
823 823
824 bool RenderLayer::hasOverflowControls() const 824 bool RenderLayer::hasOverflowControls() const
825 { 825 {
826 return m_scrollableArea && m_scrollableArea->hasScrollbar(); 826 return m_scrollableArea && m_scrollableArea->hasScrollbar();
827 } 827 }
828 828
829 void RenderLayer::paint(GraphicsContext* context, const LayoutRect& damageRect, RenderObject* paintingRoot) 829 void RenderLayer::paint(GraphicsContext* context, const LayoutRect& damageRect, RenderObject* paintingRoot)
830 { 830 {
831 TRACE_EVENT0("blink", "RenderLayer::paint");
831 LayerPaintingInfo paintingInfo(this, enclosingIntRect(damageRect), LayoutSiz e(), paintingRoot); 832 LayerPaintingInfo paintingInfo(this, enclosingIntRect(damageRect), LayoutSiz e(), paintingRoot);
832 paintLayer(context, paintingInfo, PaintContent); 833 paintLayer(context, paintingInfo, PaintContent);
833 } 834 }
834 835
835 void RenderLayer::paintOverlayScrollbars(GraphicsContext* context, const LayoutR ect& damageRect, RenderObject* paintingRoot) 836 void RenderLayer::paintOverlayScrollbars(GraphicsContext* context, const LayoutR ect& damageRect, RenderObject* paintingRoot)
836 { 837 {
837 if (!m_containsDirtyOverlayScrollbars) 838 if (!m_containsDirtyOverlayScrollbars)
838 return; 839 return;
839 840
840 LayerPaintingInfo paintingInfo(this, enclosingIntRect(damageRect), LayoutSiz e(), paintingRoot); 841 LayerPaintingInfo paintingInfo(this, enclosingIntRect(damageRect), LayoutSiz e(), paintingRoot);
(...skipping 1100 matching lines...) Expand 10 before | Expand all | Expand 10 after
1941 } 1942 }
1942 } 1943 }
1943 1944
1944 void showLayerTree(const blink::RenderObject* renderer) 1945 void showLayerTree(const blink::RenderObject* renderer)
1945 { 1946 {
1946 if (!renderer) 1947 if (!renderer)
1947 return; 1948 return;
1948 showLayerTree(renderer->enclosingLayer()); 1949 showLayerTree(renderer->enclosingLayer());
1949 } 1950 }
1950 #endif 1951 #endif
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