| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 | 63 |
| 64 void CompositorFrameSink::OnBeginFrame(const cc::BeginFrameArgs& args) { | 64 void CompositorFrameSink::OnBeginFrame(const cc::BeginFrameArgs& args) { |
| 65 client_->OnBeginFrame(args); | 65 client_->OnBeginFrame(args); |
| 66 } | 66 } |
| 67 | 67 |
| 68 void CompositorFrameSink::ReclaimResources( | 68 void CompositorFrameSink::ReclaimResources( |
| 69 const cc::ReturnedResourceArray& resources) { | 69 const cc::ReturnedResourceArray& resources) { |
| 70 client_->ReclaimResources(resources); | 70 client_->ReclaimResources(resources); |
| 71 } | 71 } |
| 72 | 72 |
| 73 void CompositorFrameSink::WillDrawSurface() { | 73 void CompositorFrameSink::WillDrawSurface( |
| 74 client_->WillDrawSurface(); | 74 const cc::LocalSurfaceId& local_surface_id, |
| 75 const gfx::Rect& damage_rect) { |
| 76 client_->WillDrawSurface(local_surface_id, damage_rect); |
| 75 } | 77 } |
| 76 | 78 |
| 77 } // namespace exo | 79 } // namespace exo |
| OLD | NEW |