| 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 #ifndef COMPONENTS_EXO_EXO_COMPOSITOR_FRAME_SINK_H_ | 5 #ifndef COMPONENTS_EXO_EXO_COMPOSITOR_FRAME_SINK_H_ |
| 6 #define COMPONENTS_EXO_EXO_COMPOSITOR_FRAME_SINK_H_ | 6 #define COMPONENTS_EXO_EXO_COMPOSITOR_FRAME_SINK_H_ |
| 7 | 7 |
| 8 #include "cc/ipc/compositor_frame.mojom.h" | 8 #include "cc/ipc/compositor_frame.mojom.h" |
| 9 #include "cc/ipc/mojo_compositor_frame_sink.mojom.h" | 9 #include "cc/ipc/mojo_compositor_frame_sink.mojom.h" |
| 10 #include "cc/resources/transferable_resource.h" | 10 #include "cc/resources/transferable_resource.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 cc::CompositorFrame frame) override; | 31 cc::CompositorFrame frame) override; |
| 32 void EvictFrame() override; | 32 void EvictFrame() override; |
| 33 void Require(const cc::LocalSurfaceId& local_surface_id, | 33 void Require(const cc::LocalSurfaceId& local_surface_id, |
| 34 const cc::SurfaceSequence& sequence) override; | 34 const cc::SurfaceSequence& sequence) override; |
| 35 void Satisfy(const cc::SurfaceSequence& sequence) override; | 35 void Satisfy(const cc::SurfaceSequence& sequence) override; |
| 36 | 36 |
| 37 // Overridden from cc::CompositorFrameSinkSupportClient: | 37 // Overridden from cc::CompositorFrameSinkSupportClient: |
| 38 void DidReceiveCompositorFrameAck() override; | 38 void DidReceiveCompositorFrameAck() override; |
| 39 void OnBeginFrame(const cc::BeginFrameArgs& args) override; | 39 void OnBeginFrame(const cc::BeginFrameArgs& args) override; |
| 40 void ReclaimResources(const cc::ReturnedResourceArray& resources) override; | 40 void ReclaimResources(const cc::ReturnedResourceArray& resources) override; |
| 41 void WillDrawSurface() override; | 41 void WillDrawSurface(const cc::LocalSurfaceId& local_surface_id, |
| 42 const gfx::Rect& damage_rect) override; |
| 42 | 43 |
| 43 private: | 44 private: |
| 44 cc::CompositorFrameSinkSupport support_; | 45 cc::CompositorFrameSinkSupport support_; |
| 45 CompositorFrameSinkHolder* const client_; | 46 CompositorFrameSinkHolder* const client_; |
| 46 | 47 |
| 47 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSink); | 48 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSink); |
| 48 }; | 49 }; |
| 49 | 50 |
| 50 } // namespace exo | 51 } // namespace exo |
| 51 | 52 |
| 52 #endif // COMPONENTS_EXO_EXO_COMPOSITOR_FRAME_SINK_H_ | 53 #endif // COMPONENTS_EXO_EXO_COMPOSITOR_FRAME_SINK_H_ |
| OLD | NEW |