Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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/viz/frame_sinks/gpu_root_compositor_frame_sink.h" | 5 #include "components/viz/frame_sinks/gpu_root_compositor_frame_sink.h" |
| 6 | 6 |
| 7 #include "cc/surfaces/compositor_frame_sink_support.h" | 7 #include "cc/surfaces/compositor_frame_sink_support.h" |
| 8 #include "cc/surfaces/display.h" | 8 #include "cc/surfaces/display.h" |
| 9 | 9 |
| 10 namespace viz { | 10 namespace viz { |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 97 void GpuRootCompositorFrameSink::ClaimTemporaryReference( | 97 void GpuRootCompositorFrameSink::ClaimTemporaryReference( |
| 98 const cc::SurfaceId& surface_id) { | 98 const cc::SurfaceId& surface_id) { |
| 99 support_->ClaimTemporaryReference(surface_id); | 99 support_->ClaimTemporaryReference(surface_id); |
| 100 } | 100 } |
| 101 | 101 |
| 102 void GpuRootCompositorFrameSink::RequestCopyOfSurface( | 102 void GpuRootCompositorFrameSink::RequestCopyOfSurface( |
| 103 std::unique_ptr<cc::CopyOutputRequest> request) { | 103 std::unique_ptr<cc::CopyOutputRequest> request) { |
| 104 support_->RequestCopyOfSurface(std::move(request)); | 104 support_->RequestCopyOfSurface(std::move(request)); |
| 105 } | 105 } |
| 106 | 106 |
| 107 void GpuRootCompositorFrameSink::RequestBeginFrame( | |
| 108 cc::mojom::FrameSinkObserverPtr observer) { | |
| 109 NOTREACHED() << "Stahp"; | |
|
Fady Samuel
2017/05/12 22:42:55
Better message?
sadrul
2017/05/13 03:01:38
Sorry, meant to cleanup. Removed the message here,
| |
| 110 } | |
| 111 | |
| 107 void GpuRootCompositorFrameSink::DisplayOutputSurfaceLost() { | 112 void GpuRootCompositorFrameSink::DisplayOutputSurfaceLost() { |
| 108 // TODO(staraz): Implement this. Client should hear about context/output | 113 // TODO(staraz): Implement this. Client should hear about context/output |
| 109 // surface lost. | 114 // surface lost. |
| 110 } | 115 } |
| 111 | 116 |
| 112 void GpuRootCompositorFrameSink::DisplayWillDrawAndSwap( | 117 void GpuRootCompositorFrameSink::DisplayWillDrawAndSwap( |
| 113 bool will_draw_and_swap, | 118 bool will_draw_and_swap, |
| 114 const cc::RenderPassList& render_pass) {} | 119 const cc::RenderPassList& render_pass) {} |
| 115 | 120 |
| 116 void GpuRootCompositorFrameSink::DisplayDidDrawAndSwap() {} | 121 void GpuRootCompositorFrameSink::DisplayDidDrawAndSwap() {} |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 144 } | 149 } |
| 145 | 150 |
| 146 void GpuRootCompositorFrameSink::OnPrivateConnectionLost() { | 151 void GpuRootCompositorFrameSink::OnPrivateConnectionLost() { |
| 147 private_connection_lost_ = true; | 152 private_connection_lost_ = true; |
| 148 // Request destruction of |this| only if both connections are lost. | 153 // Request destruction of |this| only if both connections are lost. |
| 149 delegate_->OnPrivateConnectionLost(support_->frame_sink_id(), | 154 delegate_->OnPrivateConnectionLost(support_->frame_sink_id(), |
| 150 client_connection_lost_); | 155 client_connection_lost_); |
| 151 } | 156 } |
| 152 | 157 |
| 153 } // namespace viz | 158 } // namespace viz |
| OLD | NEW |