| 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 18 matching lines...) Expand all Loading... |
| 29 void CompositorFrameSink::SetNeedsBeginFrame(bool needs_begin_frame) { | 29 void CompositorFrameSink::SetNeedsBeginFrame(bool needs_begin_frame) { |
| 30 support_.SetNeedsBeginFrame(needs_begin_frame); | 30 support_.SetNeedsBeginFrame(needs_begin_frame); |
| 31 } | 31 } |
| 32 | 32 |
| 33 void CompositorFrameSink::SubmitCompositorFrame( | 33 void CompositorFrameSink::SubmitCompositorFrame( |
| 34 const cc::LocalFrameId& local_frame_id, | 34 const cc::LocalFrameId& local_frame_id, |
| 35 cc::CompositorFrame frame) { | 35 cc::CompositorFrame frame) { |
| 36 support_.SubmitCompositorFrame(local_frame_id, std::move(frame)); | 36 support_.SubmitCompositorFrame(local_frame_id, std::move(frame)); |
| 37 } | 37 } |
| 38 | 38 |
| 39 void CompositorFrameSink::AddSurfaceReferences( | |
| 40 const std::vector<cc::SurfaceReference>& references) { | |
| 41 // TODO(fsamuel, staraz): Implement this. | |
| 42 NOTIMPLEMENTED(); | |
| 43 } | |
| 44 | |
| 45 void CompositorFrameSink::RemoveSurfaceReferences( | |
| 46 const std::vector<cc::SurfaceReference>& references) { | |
| 47 // TODO(fsamuel, staraz): Implement this. | |
| 48 NOTIMPLEMENTED(); | |
| 49 } | |
| 50 | |
| 51 void CompositorFrameSink::EvictFrame() { | 39 void CompositorFrameSink::EvictFrame() { |
| 52 support_.EvictFrame(); | 40 support_.EvictFrame(); |
| 53 } | 41 } |
| 54 | 42 |
| 55 void CompositorFrameSink::Require(const cc::LocalFrameId& local_frame_id, | 43 void CompositorFrameSink::Require(const cc::LocalFrameId& local_frame_id, |
| 56 const cc::SurfaceSequence& sequence) { | 44 const cc::SurfaceSequence& sequence) { |
| 57 support_.Require(local_frame_id, sequence); | 45 support_.Require(local_frame_id, sequence); |
| 58 } | 46 } |
| 59 | 47 |
| 60 void CompositorFrameSink::Satisfy(const cc::SurfaceSequence& sequence) { | 48 void CompositorFrameSink::Satisfy(const cc::SurfaceSequence& sequence) { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 75 void CompositorFrameSink::ReclaimResources( | 63 void CompositorFrameSink::ReclaimResources( |
| 76 const cc::ReturnedResourceArray& resources) { | 64 const cc::ReturnedResourceArray& resources) { |
| 77 client_->ReclaimResources(resources); | 65 client_->ReclaimResources(resources); |
| 78 } | 66 } |
| 79 | 67 |
| 80 void CompositorFrameSink::WillDrawSurface() { | 68 void CompositorFrameSink::WillDrawSurface() { |
| 81 client_->WillDrawSurface(); | 69 client_->WillDrawSurface(); |
| 82 } | 70 } |
| 83 | 71 |
| 84 } // namespace exo | 72 } // namespace exo |
| OLD | NEW |