| 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 15 matching lines...) Expand all Loading... |
| 26 public SurfaceFactoryClient, | 26 public SurfaceFactoryClient, |
| 27 public NON_EXPORTED_BASE(DisplayClient) { | 27 public NON_EXPORTED_BASE(DisplayClient) { |
| 28 public: | 28 public: |
| 29 // The underlying Display, SurfaceManager, and SurfaceIdAllocator must outlive | 29 // The underlying Display, SurfaceManager, and SurfaceIdAllocator must outlive |
| 30 // this class. | 30 // this class. |
| 31 DirectCompositorFrameSink( | 31 DirectCompositorFrameSink( |
| 32 const FrameSinkId& frame_sink_id, | 32 const FrameSinkId& frame_sink_id, |
| 33 SurfaceManager* surface_manager, | 33 SurfaceManager* surface_manager, |
| 34 Display* display, | 34 Display* display, |
| 35 scoped_refptr<ContextProvider> context_provider, | 35 scoped_refptr<ContextProvider> context_provider, |
| 36 scoped_refptr<ContextProvider> worker_context_provider); | 36 scoped_refptr<ContextProvider> worker_context_provider, |
| 37 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, |
| 38 SharedBitmapManager* shared_bitmap_manager); |
| 37 DirectCompositorFrameSink( | 39 DirectCompositorFrameSink( |
| 38 const FrameSinkId& frame_sink_id, | 40 const FrameSinkId& frame_sink_id, |
| 39 SurfaceManager* surface_manager, | 41 SurfaceManager* surface_manager, |
| 40 Display* display, | 42 Display* display, |
| 41 scoped_refptr<VulkanContextProvider> vulkan_context_provider); | 43 scoped_refptr<VulkanContextProvider> vulkan_context_provider); |
| 42 ~DirectCompositorFrameSink() override; | 44 ~DirectCompositorFrameSink() override; |
| 43 | 45 |
| 44 // CompositorFrameSink implementation. | 46 // CompositorFrameSink implementation. |
| 45 bool BindToClient(CompositorFrameSinkClient* client) override; | 47 bool BindToClient(CompositorFrameSinkClient* client) override; |
| 46 void DetachFromClient() override; | 48 void DetachFromClient() override; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 71 SurfaceFactory factory_; | 73 SurfaceFactory factory_; |
| 72 gfx::Size last_swap_frame_size_; | 74 gfx::Size last_swap_frame_size_; |
| 73 bool is_lost_ = false; | 75 bool is_lost_ = false; |
| 74 | 76 |
| 75 DISALLOW_COPY_AND_ASSIGN(DirectCompositorFrameSink); | 77 DISALLOW_COPY_AND_ASSIGN(DirectCompositorFrameSink); |
| 76 }; | 78 }; |
| 77 | 79 |
| 78 } // namespace cc | 80 } // namespace cc |
| 79 | 81 |
| 80 #endif // CC_SURFACES_DIRECT_COMPOSITOR_FRAME_SINK_H_ | 82 #endif // CC_SURFACES_DIRECT_COMPOSITOR_FRAME_SINK_H_ |
| OLD | NEW |