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

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

Issue 316693003: Remove scheduleLayerUpdate from RenderLayerCompositor. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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
« no previous file with comments | « Source/core/rendering/RenderIFrame.cpp ('k') | Source/core/rendering/RenderPart.cpp » ('j') | 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 3579 matching lines...) Expand 10 before | Expand all | Expand 10 after
3590 childLocalRect.moveBy(-childOffset); 3590 childLocalRect.moveBy(-childOffset);
3591 3591
3592 if (childLayer->backgroundIsKnownToBeOpaqueInRect(childLocalRect)) 3592 if (childLayer->backgroundIsKnownToBeOpaqueInRect(childLocalRect))
3593 return true; 3593 return true;
3594 } 3594 }
3595 return false; 3595 return false;
3596 } 3596 }
3597 3597
3598 bool RenderLayer::shouldBeSelfPaintingLayer() const 3598 bool RenderLayer::shouldBeSelfPaintingLayer() const
3599 { 3599 {
3600 if (renderer()->isRenderPart() && toRenderPart(renderer())->requiresAccelera tedCompositing())
3601 return true;
3600 return m_layerType == NormalLayer 3602 return m_layerType == NormalLayer
3601 || (m_scrollableArea && m_scrollableArea->hasOverlayScrollbars()) 3603 || (m_scrollableArea && m_scrollableArea->hasOverlayScrollbars())
3602 || needsCompositedScrolling(); 3604 || needsCompositedScrolling();
3603 } 3605 }
3604 3606
3605 void RenderLayer::updateSelfPaintingLayer() 3607 void RenderLayer::updateSelfPaintingLayer()
3606 { 3608 {
3607 bool isSelfPaintingLayer = this->shouldBeSelfPaintingLayer(); 3609 bool isSelfPaintingLayer = this->shouldBeSelfPaintingLayer();
3608 if (this->isSelfPaintingLayer() == isSelfPaintingLayer) 3610 if (this->isSelfPaintingLayer() == isSelfPaintingLayer)
3609 return; 3611 return;
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
3945 } 3947 }
3946 } 3948 }
3947 3949
3948 void showLayerTree(const WebCore::RenderObject* renderer) 3950 void showLayerTree(const WebCore::RenderObject* renderer)
3949 { 3951 {
3950 if (!renderer) 3952 if (!renderer)
3951 return; 3953 return;
3952 showLayerTree(renderer->enclosingLayer()); 3954 showLayerTree(renderer->enclosingLayer());
3953 } 3955 }
3954 #endif 3956 #endif
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderIFrame.cpp ('k') | Source/core/rendering/RenderPart.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698