• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2022 The ChromiumOS Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 use std::sync::Weak;
6 
7 use anyhow::Result;
8 use euclid::Size2D;
9 use metrics::Metrics;
10 
11 use super::window::Window;
12 use super::window_message_dispatcher::DisplayEventDispatcher;
13 use super::window_message_processor::HandleWindowMessage;
14 use super::DisplayProperties;
15 use super::VirtualDisplaySpace;
16 
17 pub struct NoopSurface {}
18 
19 impl NoopSurface {
create( _window: &Window, _virtual_display_size: &Size2D<i32, VirtualDisplaySpace>, _metrics: Option<Weak<Metrics>>, _display_properties: &DisplayProperties, _display_event_dispatcher: DisplayEventDispatcher, ) -> Result<Self>20     pub fn create(
21         _window: &Window,
22         _virtual_display_size: &Size2D<i32, VirtualDisplaySpace>,
23         _metrics: Option<Weak<Metrics>>,
24         _display_properties: &DisplayProperties,
25         _display_event_dispatcher: DisplayEventDispatcher,
26     ) -> Result<Self> {
27         Ok(Self {})
28     }
29 }
30 
31 impl HandleWindowMessage for NoopSurface {}
32