(&self)
| 357 | } |
| 358 | |
| 359 | fn unmap(&self) { |
| 360 | unsafe { |
| 361 | (*self.duplication.0).ReleaseFrame(); |
| 362 | if self.fastlane { |
| 363 | (*self.duplication.0).UnMapDesktopSurface(); |
| 364 | } else { |
| 365 | if !self.surface.is_null() { |
| 366 | (*self.surface.0).Unmap(); |
| 367 | } |
| 368 | } |
| 369 | } |
| 370 | } |
| 371 | |
| 372 | pub fn device(&self) -> AdapterDevice { |
| 373 | AdapterDevice { |
no test coverage detected