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

Unified Diff: gpu/ipc/service/image_transport_surface_overlay_mac.mm

Issue 1920723002: Mac: Add detection for low power video compatible frames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add const Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/accelerated_widget_mac/ca_layer_tree_coordinator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/service/image_transport_surface_overlay_mac.mm
diff --git a/gpu/ipc/service/image_transport_surface_overlay_mac.mm b/gpu/ipc/service/image_transport_surface_overlay_mac.mm
index 5bcc1473b15b1b89ffbd5b41970b54c164fed00b..1f8d25ad35b7ad48376e571f7ef4911ede02c3dd 100644
--- a/gpu/ipc/service/image_transport_surface_overlay_mac.mm
+++ b/gpu/ipc/service/image_transport_surface_overlay_mac.mm
@@ -176,7 +176,11 @@ gfx::SwapResult ImageTransportSurfaceOverlayMac::SwapBuffersInternal(
base::TimeTicks finish_time = base::TimeTicks::Now();
- ca_layer_tree_coordinator_->CommitPendingTreesToCA(pixel_damage_rect);
+ bool fullscreen_low_power_layer_valid = false;
+ ca_layer_tree_coordinator_->CommitPendingTreesToCA(
+ pixel_damage_rect, &fullscreen_low_power_layer_valid);
+ // TODO(ccameron): Plumb the fullscreen low power layer through to the
+ // appropriate window.
// Update the latency info to reflect the swap time.
for (auto latency_info : latency_info_) {
« no previous file with comments | « no previous file | ui/accelerated_widget_mac/ca_layer_tree_coordinator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698