| 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 cc::BeginFrameSource* begin_frame_source) { | 116 cc::BeginFrameSource* begin_frame_source) { |
| 117 // TODO(fsamuel): Implement this. | 117 // TODO(fsamuel): Implement this. |
| 118 } | 118 } |
| 119 | 119 |
| 120 void DisplayCompositor::DisplayOutputSurfaceLost() { | 120 void DisplayCompositor::DisplayOutputSurfaceLost() { |
| 121 // TODO(fsamuel): This looks like it would crash if a frame was in flight and | 121 // TODO(fsamuel): This looks like it would crash if a frame was in flight and |
| 122 // will be submitted. | 122 // will be submitted. |
| 123 display_.reset(); | 123 display_.reset(); |
| 124 } | 124 } |
| 125 | 125 |
| 126 void DisplayCompositor::DisplaySetMemoryPolicy( | |
| 127 const cc::ManagedMemoryPolicy& policy) {} | |
| 128 | |
| 129 void DisplayCompositor::DisplayWillDrawAndSwap( | 126 void DisplayCompositor::DisplayWillDrawAndSwap( |
| 130 bool will_draw_and_swap, | 127 bool will_draw_and_swap, |
| 131 const cc::RenderPassList& render_passes) { | 128 const cc::RenderPassList& render_passes) { |
| 132 // This notification is not relevant to our client outside of tests. | 129 // This notification is not relevant to our client outside of tests. |
| 133 } | 130 } |
| 134 | 131 |
| 135 void DisplayCompositor::DisplayDidDrawAndSwap() { | 132 void DisplayCompositor::DisplayDidDrawAndSwap() { |
| 136 // This notification is not relevant to our client outside of tests. We | 133 // This notification is not relevant to our client outside of tests. We |
| 137 // unblock the client from the DrawCallback when the surface is going to | 134 // unblock the client from the DrawCallback when the surface is going to |
| 138 // be drawn. | 135 // be drawn. |
| 139 } | 136 } |
| 140 | 137 |
| 141 } // namespace ui | 138 } // namespace ui |
| OLD | NEW |