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: components/mus/ws/display_manager.cc

Issue 1406333003: aura: Support SurfaceDestroyed() on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wth2
Patch Set: comment Created 5 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
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 "components/mus/ws/display_manager.h" 5 #include "components/mus/ws/display_manager.h"
6 6
7 #include "base/numerics/safe_conversions.h" 7 #include "base/numerics/safe_conversions.h"
8 #include "cc/output/compositor_frame.h" 8 #include "cc/output/compositor_frame.h"
9 #include "cc/output/delegated_frame_data.h" 9 #include "cc/output/delegated_frame_data.h"
10 #include "cc/quads/render_pass.h" 10 #include "cc/quads/render_pass.h"
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 float device_pixel_ratio) { 344 float device_pixel_ratio) {
345 if (widget != gfx::kNullAcceleratedWidget) { 345 if (widget != gfx::kNullAcceleratedWidget) {
346 top_level_display_client_.reset( 346 top_level_display_client_.reset(
347 new TopLevelDisplayClient(widget, gpu_state_, surfaces_state_)); 347 new TopLevelDisplayClient(widget, gpu_state_, surfaces_state_));
348 delegate_->OnTopLevelSurfaceChanged( 348 delegate_->OnTopLevelSurfaceChanged(
349 top_level_display_client_->surface_id()); 349 top_level_display_client_->surface_id());
350 } 350 }
351 UpdateMetrics(metrics_.size_in_pixels.To<gfx::Size>(), device_pixel_ratio); 351 UpdateMetrics(metrics_.size_in_pixels.To<gfx::Size>(), device_pixel_ratio);
352 } 352 }
353 353
354 void DefaultDisplayManager::OnAcceleratedWidgetDestroyed() {
355 NOTREACHED();
356 }
357
354 void DefaultDisplayManager::OnActivationChanged(bool active) {} 358 void DefaultDisplayManager::OnActivationChanged(bool active) {}
355 359
356 } // namespace mus 360 } // namespace mus
OLDNEW
« no previous file with comments | « components/mus/ws/display_manager.h ('k') | content/browser/compositor/software_output_device_ozone_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698