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

Unified Diff: views/widget/native_widget_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/native_widget_view.h ('k') | views/widget/native_widget_views.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/native_widget_view.cc
===================================================================
--- views/widget/native_widget_view.cc (revision 100773)
+++ views/widget/native_widget_view.cc (working copy)
@@ -44,19 +44,12 @@
////////////////////////////////////////////////////////////////////////////////
// NativeWidgetView, View overrides:
-void NativeWidgetView::SchedulePaintInternal(const gfx::Rect& r) {
- View::SchedulePaintInternal(r);
+void NativeWidgetView::CalculateOffsetToAncestorWithLayer(
+ gfx::Point* offset,
+ ui::Layer** layer_parent) {
+ View::CalculateOffsetToAncestorWithLayer(offset, layer_parent);
}
-void NativeWidgetView::MarkLayerDirty() {
- View::MarkLayerDirty();
-}
-
-void NativeWidgetView::CalculateOffsetToAncestorWithLayer(gfx::Point* offset,
- View** ancestor) {
- View::CalculateOffsetToAncestorWithLayer(offset, ancestor);
-}
-
void NativeWidgetView::ViewHierarchyChanged(bool is_add,
View* parent,
View* child) {
@@ -197,23 +190,5 @@
}
}
-void NativeWidgetView::PaintToLayer(const gfx::Rect& dirty_rect) {
- View::PaintToLayer(dirty_rect);
-
- View* root = GetAssociatedWidget()->GetRootView();
- gfx::Rect root_dirty_rect = dirty_rect;
- root->GetTransform().TransformRectReverse(&root_dirty_rect);
- root_dirty_rect =
- gfx::Rect(gfx::Point(), root->size()).Intersect(root_dirty_rect);
-
- if (!root_dirty_rect.IsEmpty())
- root->PaintToLayer(root_dirty_rect);
-}
-
-void NativeWidgetView::PaintComposite() {
- View::PaintComposite();
- GetAssociatedWidget()->GetRootView()->PaintComposite();
-}
-
} // namespace internal
} // namespace views
« no previous file with comments | « views/widget/native_widget_view.h ('k') | views/widget/native_widget_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698