| Index: views/widget/widget.cc
|
| diff --git a/views/widget/widget.cc b/views/widget/widget.cc
|
| index 94eabd5658218a7392c3bcd5fc8bd4d54cd24597..8638f7d9d6c2455f9afd488d0656f97f364b320d 100644
|
| --- a/views/widget/widget.cc
|
| +++ b/views/widget/widget.cc
|
| @@ -651,9 +651,6 @@ bool Widget::HasFocusManager() const {
|
| }
|
|
|
| bool Widget::OnNativeWidgetPaintAccelerated(const gfx::Rect& dirty_region) {
|
| -#if !defined(COMPOSITOR_2)
|
| - return false;
|
| -#else
|
| if (!compositor_.get())
|
| return false;
|
|
|
| @@ -662,18 +659,10 @@ bool Widget::OnNativeWidgetPaintAccelerated(const gfx::Rect& dirty_region) {
|
| GetRootView()->PaintComposite();
|
| compositor_->NotifyEnd();
|
| return true;
|
| -#endif
|
| }
|
|
|
| void Widget::OnNativeWidgetPaint(gfx::Canvas* canvas) {
|
| GetRootView()->Paint(canvas);
|
| -#if !defined(COMPOSITOR_2)
|
| - if (compositor_.get()) {
|
| - compositor_->NotifyStart();
|
| - root_view_->PaintComposite(compositor_.get());
|
| - compositor_->NotifyEnd();
|
| - }
|
| -#endif
|
| }
|
|
|
| int Widget::GetNonClientComponent(const gfx::Point& point) {
|
|
|