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 "components/exo/compositor_frame_sink.h" | 5 #include "components/exo/compositor_frame_sink.h" |
6 | 6 |
7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
8 #include "cc/surfaces/surface.h" | 8 #include "cc/surfaces/surface.h" |
9 #include "cc/surfaces/surface_manager.h" | 9 #include "cc/surfaces/surface_manager.h" |
10 #include "components/exo/compositor_frame_sink_holder.h" | 10 #include "components/exo/compositor_frame_sink_holder.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 support_.BeginFrameDidNotSwap(begin_frame_ack); | 46 support_.BeginFrameDidNotSwap(begin_frame_ack); |
47 } | 47 } |
48 | 48 |
49 void CompositorFrameSink::EvictFrame() { | 49 void CompositorFrameSink::EvictFrame() { |
50 support_.EvictFrame(); | 50 support_.EvictFrame(); |
51 } | 51 } |
52 | 52 |
53 //////////////////////////////////////////////////////////////////////////////// | 53 //////////////////////////////////////////////////////////////////////////////// |
54 // cc::CompositorFrameSinkSupportClient overrides: | 54 // cc::CompositorFrameSinkSupportClient overrides: |
55 | 55 |
56 void CompositorFrameSink::DidReceiveCompositorFrameAck() { | 56 void CompositorFrameSink::DidReceiveCompositorFrameAck( |
57 client_->DidReceiveCompositorFrameAck(); | 57 const cc::ReturnedResourceArray& resources) { |
| 58 client_->DidReceiveCompositorFrameAck(resources); |
58 } | 59 } |
59 | 60 |
60 void CompositorFrameSink::OnBeginFrame(const cc::BeginFrameArgs& args) { | 61 void CompositorFrameSink::OnBeginFrame(const cc::BeginFrameArgs& args) { |
61 client_->OnBeginFrame(args); | 62 client_->OnBeginFrame(args); |
62 } | 63 } |
63 | 64 |
64 void CompositorFrameSink::ReclaimResources( | 65 void CompositorFrameSink::ReclaimResources( |
65 const cc::ReturnedResourceArray& resources) { | 66 const cc::ReturnedResourceArray& resources) { |
66 client_->ReclaimResources(resources); | 67 client_->ReclaimResources(resources); |
67 } | 68 } |
68 | 69 |
69 } // namespace exo | 70 } // namespace exo |
OLD | NEW |