| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "services/ui/surfaces/display_compositor.h" | 5 #include "services/ui/surfaces/display_compositor.h" |
| 6 | 6 |
| 7 #include "cc/output/copy_output_request.h" | 7 #include "cc/output/copy_output_request.h" |
| 8 #include "cc/output/output_surface.h" | 8 #include "cc/output/output_surface.h" |
| 9 #include "cc/output/renderer_settings.h" | 9 #include "cc/output/renderer_settings.h" |
| 10 #include "cc/output/texture_mailbox_deleter.h" | 10 #include "cc/output/texture_mailbox_deleter.h" |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 | 114 |
| 115 void DisplayCompositor::DisplayOutputSurfaceLost() { | 115 void DisplayCompositor::DisplayOutputSurfaceLost() { |
| 116 // TODO(fsamuel): This looks like it would crash if a frame was in flight and | 116 // TODO(fsamuel): This looks like it would crash if a frame was in flight and |
| 117 // will be submitted. | 117 // will be submitted. |
| 118 display_.reset(); | 118 display_.reset(); |
| 119 } | 119 } |
| 120 | 120 |
| 121 void DisplayCompositor::DisplaySetMemoryPolicy( | 121 void DisplayCompositor::DisplaySetMemoryPolicy( |
| 122 const cc::ManagedMemoryPolicy& policy) {} | 122 const cc::ManagedMemoryPolicy& policy) {} |
| 123 | 123 |
| 124 void DisplayCompositor::DisplayWillDrawAndSwap( | |
| 125 bool will_draw_and_swap, | |
| 126 const cc::RenderPassList& render_passes) { | |
| 127 // This notification is not relevant to our client outside of tests. | |
| 128 } | |
| 129 | |
| 130 void DisplayCompositor::DisplayDidDrawAndSwap() { | |
| 131 // This notification is not relevant to our client outside of tests. We | |
| 132 // unblock the client from the DrawCallback when the surface is going to | |
| 133 // be drawn. | |
| 134 } | |
| 135 | |
| 136 } // namespace ui | 124 } // namespace ui |
| OLD | NEW |