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

Unified Diff: views/widget/widget.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
« views/view.cc ('K') | « views/widget/widget.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/widget.cc
===================================================================
--- views/widget/widget.cc (revision 100773)
+++ views/widget/widget.cc (working copy)
@@ -10,6 +10,7 @@
#include "ui/base/l10n/l10n_font_util.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/compositor/compositor.h"
+#include "ui/gfx/compositor/layer.h"
#include "views/controls/menu/menu_controller.h"
#include "views/focus/focus_manager_factory.h"
#include "views/focus/view_storage.h"
@@ -751,8 +752,8 @@
}
void Widget::CalculateOffsetToAncestorWithLayer(gfx::Point* offset,
- View** ancestor) {
- native_widget_->CalculateOffsetToAncestorWithLayer(offset, ancestor);
+ ui::Layer** layer_parent) {
+ native_widget_->CalculateOffsetToAncestorWithLayer(offset, layer_parent);
}
void Widget::NotifyAccessibilityEvent(
@@ -917,8 +918,7 @@
return false;
compositor->NotifyStart();
- GetRootView()->PaintToLayer(dirty_region);
- GetRootView()->PaintComposite();
+ GetRootView()->layer()->Draw();
compositor->NotifyEnd();
return true;
}
« views/view.cc ('K') | « views/widget/widget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698