| 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 #include "services/ui/ws/platform_display.h" | 5 #include "services/ui/ws/platform_display.h" |
| 6 | 6 |
| 7 #include "base/numerics/safe_conversions.h" | 7 #include "base/numerics/safe_conversions.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "cc/ipc/quads.mojom.h" | 9 #include "cc/ipc/quads.mojom.h" |
| 10 #include "cc/output/copy_output_request.h" | 10 #include "cc/output/copy_output_request.h" |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 | 291 |
| 292 void DefaultPlatformDisplay::RequestCopyOfOutput( | 292 void DefaultPlatformDisplay::RequestCopyOfOutput( |
| 293 std::unique_ptr<cc::CopyOutputRequest> output_request) { | 293 std::unique_ptr<cc::CopyOutputRequest> output_request) { |
| 294 frame_generator_->RequestCopyOfOutput(std::move(output_request)); | 294 frame_generator_->RequestCopyOfOutput(std::move(output_request)); |
| 295 } | 295 } |
| 296 | 296 |
| 297 ServerWindow* DefaultPlatformDisplay::GetRootWindow() { | 297 ServerWindow* DefaultPlatformDisplay::GetRootWindow() { |
| 298 return delegate_->GetRootWindow(); | 298 return delegate_->GetRootWindow(); |
| 299 } | 299 } |
| 300 | 300 |
| 301 void DefaultPlatformDisplay::OnCompositorFrameDrawn() { | |
| 302 if (delegate_) | |
| 303 delegate_->OnCompositorFrameDrawn(); | |
| 304 } | |
| 305 | |
| 306 bool DefaultPlatformDisplay::IsInHighContrastMode() { | 301 bool DefaultPlatformDisplay::IsInHighContrastMode() { |
| 307 return delegate_ ? delegate_->IsInHighContrastMode() : false; | 302 return delegate_ ? delegate_->IsInHighContrastMode() : false; |
| 308 } | 303 } |
| 309 | 304 |
| 310 const ViewportMetrics& DefaultPlatformDisplay::GetViewportMetrics() { | 305 const ViewportMetrics& DefaultPlatformDisplay::GetViewportMetrics() { |
| 311 return metrics_; | 306 return metrics_; |
| 312 } | 307 } |
| 313 | 308 |
| 314 } // namespace ws | 309 } // namespace ws |
| 315 | 310 |
| 316 } // namespace ui | 311 } // namespace ui |
| OLD | NEW |