| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/exo/surface.h" | 5 #include "components/exo/surface.h" |
| 6 | 6 |
| 7 #include "base/callback_helpers.h" | 7 #include "base/callback_helpers.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/macros.h" |
| 9 #include "base/trace_event/trace_event.h" | 10 #include "base/trace_event/trace_event.h" |
| 10 #include "base/trace_event/trace_event_argument.h" | 11 #include "base/trace_event/trace_event_argument.h" |
| 11 #include "cc/resources/single_release_callback.h" | 12 #include "cc/resources/single_release_callback.h" |
| 12 #include "components/exo/buffer.h" | 13 #include "components/exo/buffer.h" |
| 13 #include "components/exo/surface_delegate.h" | 14 #include "components/exo/surface_delegate.h" |
| 14 #include "components/exo/surface_observer.h" | 15 #include "components/exo/surface_observer.h" |
| 15 #include "ui/aura/window_delegate.h" | 16 #include "ui/aura/window_delegate.h" |
| 16 #include "ui/aura/window_property.h" | 17 #include "ui/aura/window_property.h" |
| 17 #include "ui/base/cursor/cursor.h" | 18 #include "ui/base/cursor/cursor.h" |
| 18 #include "ui/base/hit_test.h" | 19 #include "ui/base/hit_test.h" |
| (...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 // of the surface next time the compositor successfully ends compositing. | 415 // of the surface next time the compositor successfully ends compositing. |
| 415 update_contents_after_successful_compositing_ = true; | 416 update_contents_after_successful_compositing_ = true; |
| 416 } | 417 } |
| 417 | 418 |
| 418 void Surface::OnCompositingShuttingDown(ui::Compositor* compositor) { | 419 void Surface::OnCompositingShuttingDown(ui::Compositor* compositor) { |
| 419 compositor->RemoveObserver(this); | 420 compositor->RemoveObserver(this); |
| 420 compositor_ = nullptr; | 421 compositor_ = nullptr; |
| 421 } | 422 } |
| 422 | 423 |
| 423 } // namespace exo | 424 } // namespace exo |
| OLD | NEW |