| 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 22 matching lines...) Expand all Loading... |
| 33 void EvictFrame() override; | 33 void EvictFrame() override; |
| 34 | 34 |
| 35 // Overridden from cc::CompositorFrameSinkSupportClient: | 35 // Overridden from cc::CompositorFrameSinkSupportClient: |
| 36 void DidReceiveCompositorFrameAck() override; | 36 void DidReceiveCompositorFrameAck() override; |
| 37 void OnBeginFrame(const cc::BeginFrameArgs& args) override; | 37 void OnBeginFrame(const cc::BeginFrameArgs& args) override; |
| 38 void ReclaimResources(const cc::ReturnedResourceArray& resources) override; | 38 void ReclaimResources(const cc::ReturnedResourceArray& resources) override; |
| 39 void WillDrawSurface(const cc::LocalSurfaceId& local_surface_id, | 39 void WillDrawSurface(const cc::LocalSurfaceId& local_surface_id, |
| 40 const gfx::Rect& damage_rect) override {} | 40 const gfx::Rect& damage_rect) override {} |
| 41 | 41 |
| 42 private: | 42 private: |
| 43 cc::CompositorFrameSinkSupport support_; | 43 std::unique_ptr<cc::CompositorFrameSinkSupport> support_; |
| 44 CompositorFrameSinkHolder* const client_; | 44 CompositorFrameSinkHolder* const client_; |
| 45 | 45 |
| 46 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSink); | 46 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSink); |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 } // namespace exo | 49 } // namespace exo |
| 50 | 50 |
| 51 #endif // COMPONENTS_EXO_EXO_COMPOSITOR_FRAME_SINK_H_ | 51 #endif // COMPONENTS_EXO_EXO_COMPOSITOR_FRAME_SINK_H_ |
| OLD | NEW |