| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef SERVICES_UI_SURFACES_DISPLAY_PROVIDER_H_ |
| 6 #define SERVICES_UI_SURFACES_DISPLAY_PROVIDER_H_ |
| 7 |
| 8 #include <memory> |
| 9 |
| 10 #include "gpu/ipc/common/surface_handle.h" |
| 11 |
| 12 namespace cc { |
| 13 class BeginFrameSource; |
| 14 class Display; |
| 15 class FrameSinkId; |
| 16 } |
| 17 |
| 18 namespace ui { |
| 19 |
| 20 // Handles creating new cc::Displays and related classes for DisplayCompositor. |
| 21 class DisplayProvider { |
| 22 public: |
| 23 virtual ~DisplayProvider() {} |
| 24 |
| 25 // Creates a new cc::Display for |surface_handle| with |frame_sink_id|. Will |
| 26 // also create cc::BeginFrameSource and return it in |begin_frame_source|. |
| 27 virtual std::unique_ptr<cc::Display> CreateDisplay( |
| 28 const cc::FrameSinkId& frame_sink_id, |
| 29 gpu::SurfaceHandle surface_handle, |
| 30 std::unique_ptr<cc::BeginFrameSource>* begin_frame_source) = 0; |
| 31 }; |
| 32 |
| 33 } // namespace ui |
| 34 |
| 35 #endif // SERVICES_UI_SURFACES_DISPLAY_PROVIDER_H_ |
| OLD | NEW |