| 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_SURFACE_DISPLAY_OUTPUT_SURFACE_H_ | 5 #ifndef CC_SURFACES_SURFACE_DISPLAY_OUTPUT_SURFACE_H_ |
| 6 #define CC_SURFACES_SURFACE_DISPLAY_OUTPUT_SURFACE_H_ | 6 #define CC_SURFACES_SURFACE_DISPLAY_OUTPUT_SURFACE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "cc/output/output_surface.h" | 9 #include "cc/output/output_surface.h" |
| 10 #include "cc/surfaces/surface_factory.h" | 10 #include "cc/surfaces/surface_factory.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 // concept, allowing a compositor client to submit frames for a native root | 21 // concept, allowing a compositor client to submit frames for a native root |
| 22 // window or physical display. | 22 // window or physical display. |
| 23 class CC_SURFACES_EXPORT SurfaceDisplayOutputSurface | 23 class CC_SURFACES_EXPORT SurfaceDisplayOutputSurface |
| 24 : public OutputSurface, | 24 : public OutputSurface, |
| 25 public SurfaceFactoryClient { | 25 public SurfaceFactoryClient { |
| 26 public: | 26 public: |
| 27 // The underlying Display and SurfaceManager must outlive this class. | 27 // The underlying Display and SurfaceManager must outlive this class. |
| 28 SurfaceDisplayOutputSurface( | 28 SurfaceDisplayOutputSurface( |
| 29 SurfaceManager* surface_manager, | 29 SurfaceManager* surface_manager, |
| 30 SurfaceIdAllocator* allocator, | 30 SurfaceIdAllocator* allocator, |
| 31 scoped_refptr<ContextProvider> context_provider, | 31 std::unique_ptr<ContextProvider::Factory> compositor_context_factory, |
| 32 scoped_refptr<ContextProvider> worker_context_provider); | 32 scoped_refptr<ContextProvider> worker_context_provider); |
| 33 SurfaceDisplayOutputSurface( | 33 SurfaceDisplayOutputSurface( |
| 34 SurfaceManager* surface_manager, | 34 SurfaceManager* surface_manager, |
| 35 SurfaceIdAllocator* allocator, | 35 SurfaceIdAllocator* allocator, |
| 36 scoped_refptr<VulkanContextProvider> vulkan_context_provider); | 36 scoped_refptr<VulkanContextProvider> vulkan_context_provider); |
| 37 ~SurfaceDisplayOutputSurface() override; | 37 ~SurfaceDisplayOutputSurface() override; |
| 38 | 38 |
| 39 void set_display_client(OnscreenDisplayClient* display_client) { | 39 void set_display_client(OnscreenDisplayClient* display_client) { |
| 40 DCHECK(!display_client_); | 40 DCHECK(!display_client_); |
| 41 display_client_ = display_client; | 41 display_client_ = display_client; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 60 gfx::Size display_size_; | 60 gfx::Size display_size_; |
| 61 SurfaceId surface_id_; | 61 SurfaceId surface_id_; |
| 62 SurfaceIdAllocator* allocator_; | 62 SurfaceIdAllocator* allocator_; |
| 63 | 63 |
| 64 DISALLOW_COPY_AND_ASSIGN(SurfaceDisplayOutputSurface); | 64 DISALLOW_COPY_AND_ASSIGN(SurfaceDisplayOutputSurface); |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 } // namespace cc | 67 } // namespace cc |
| 68 | 68 |
| 69 #endif // CC_SURFACES_SURFACE_DISPLAY_OUTPUT_SURFACE_H_ | 69 #endif // CC_SURFACES_SURFACE_DISPLAY_OUTPUT_SURFACE_H_ |
| OLD | NEW |