| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CC_SURFACES_DIRECT_COMPOSITOR_FRAME_SINK_H_ | 5 #ifndef CC_SURFACES_DIRECT_COMPOSITOR_FRAME_SINK_H_ |
| 6 #define CC_SURFACES_DIRECT_COMPOSITOR_FRAME_SINK_H_ | 6 #define CC_SURFACES_DIRECT_COMPOSITOR_FRAME_SINK_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/threading/thread_checker.h" | 9 #include "base/threading/thread_checker.h" |
| 10 #include "cc/output/compositor_frame_sink.h" | 10 #include "cc/output/compositor_frame_sink.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 const FrameSinkId& frame_sink_id, | 42 const FrameSinkId& frame_sink_id, |
| 43 SurfaceManager* surface_manager, | 43 SurfaceManager* surface_manager, |
| 44 Display* display, | 44 Display* display, |
| 45 scoped_refptr<VulkanContextProvider> vulkan_context_provider); | 45 scoped_refptr<VulkanContextProvider> vulkan_context_provider); |
| 46 ~DirectCompositorFrameSink() override; | 46 ~DirectCompositorFrameSink() override; |
| 47 | 47 |
| 48 // CompositorFrameSink implementation. | 48 // CompositorFrameSink implementation. |
| 49 bool BindToClient(CompositorFrameSinkClient* client) override; | 49 bool BindToClient(CompositorFrameSinkClient* client) override; |
| 50 void DetachFromClient() override; | 50 void DetachFromClient() override; |
| 51 void SubmitCompositorFrame(CompositorFrame frame) override; | 51 void SubmitCompositorFrame(CompositorFrame frame) override; |
| 52 void BeginFrameDidNotProduceFrame(const BeginFrameAck& ack) override; |
| 52 | 53 |
| 53 // DisplayClient implementation. | 54 // DisplayClient implementation. |
| 54 void DisplayOutputSurfaceLost() override; | 55 void DisplayOutputSurfaceLost() override; |
| 55 void DisplayWillDrawAndSwap(bool will_draw_and_swap, | 56 void DisplayWillDrawAndSwap(bool will_draw_and_swap, |
| 56 const RenderPassList& render_passes) override; | 57 const RenderPassList& render_passes) override; |
| 57 void DisplayDidDrawAndSwap() override; | 58 void DisplayDidDrawAndSwap() override; |
| 58 | 59 |
| 59 protected: | 60 protected: |
| 60 std::unique_ptr<CompositorFrameSinkSupport> support_; // protected for test. | 61 std::unique_ptr<CompositorFrameSinkSupport> support_; // protected for test. |
| 61 | 62 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 83 gfx::Size last_swap_frame_size_; | 84 gfx::Size last_swap_frame_size_; |
| 84 bool is_lost_ = false; | 85 bool is_lost_ = false; |
| 85 std::unique_ptr<ExternalBeginFrameSource> begin_frame_source_; | 86 std::unique_ptr<ExternalBeginFrameSource> begin_frame_source_; |
| 86 | 87 |
| 87 DISALLOW_COPY_AND_ASSIGN(DirectCompositorFrameSink); | 88 DISALLOW_COPY_AND_ASSIGN(DirectCompositorFrameSink); |
| 88 }; | 89 }; |
| 89 | 90 |
| 90 } // namespace cc | 91 } // namespace cc |
| 91 | 92 |
| 92 #endif // CC_SURFACES_DIRECT_COMPOSITOR_FRAME_SINK_H_ | 93 #endif // CC_SURFACES_DIRECT_COMPOSITOR_FRAME_SINK_H_ |
| OLD | NEW |