Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: services/ui/ws/platform_display.cc

Issue 2400723003: Mus+Ash: Use standard cc mechanism for surface lifetime. (Closed)
Patch Set: Only AddObserver once Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « services/ui/ws/platform_display.h ('k') | services/ui/ws/platform_display_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « services/ui/ws/platform_display.h ('k') | services/ui/ws/platform_display_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698