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

Unified Diff: views/widget/root_view.cc

Issue 7845033: Rework View Layer Draw() to use the Layer::DrawTree() method and the LayerDelegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « views/widget/root_view.h ('k') | views/widget/widget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/root_view.cc
===================================================================
--- views/widget/root_view.cc (revision 100773)
+++ views/widget/root_view.cc (working copy)
@@ -155,11 +155,6 @@
}
void RootView::SchedulePaintInRect(const gfx::Rect& rect) {
- MarkLayerDirty();
- SchedulePaintInternal(rect);
-}
-
-void RootView::SchedulePaintInternal(const gfx::Rect& rect) {
gfx::Rect xrect = ConvertRectToParent(rect);
gfx::Rect invalid_rect = GetLocalBounds().Intersect(xrect);
if (!invalid_rect.IsEmpty())
@@ -430,17 +425,11 @@
return widget_->GetCompositor();
}
-void RootView::MarkLayerDirty() {
- View::MarkLayerDirty();
- if (!layer())
- widget_->MarkLayerDirty();
-}
-
void RootView::CalculateOffsetToAncestorWithLayer(gfx::Point* offset,
- View** ancestor) {
- View::CalculateOffsetToAncestorWithLayer(offset, ancestor);
+ ui::Layer** layer_parent) {
+ View::CalculateOffsetToAncestorWithLayer(offset, layer_parent);
if (!layer())
- widget_->CalculateOffsetToAncestorWithLayer(offset, ancestor);
+ widget_->CalculateOffsetToAncestorWithLayer(offset, layer_parent);
}
////////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « views/widget/root_view.h ('k') | views/widget/widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698