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

Unified Diff: content/common/gpu/image_transport_surface_overlay_mac.h

Issue 1271123002: Mac: Enable partial swap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 4 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 | content/common/gpu/image_transport_surface_overlay_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/image_transport_surface_overlay_mac.h
diff --git a/content/common/gpu/image_transport_surface_overlay_mac.h b/content/common/gpu/image_transport_surface_overlay_mac.h
index 022fbb41e7922a9c8e607529348033b12842f3c0..1265cc408baf80bede020766afe1ea655025800c 100644
--- a/content/common/gpu/image_transport_surface_overlay_mac.h
+++ b/content/common/gpu/image_transport_surface_overlay_mac.h
@@ -79,6 +79,7 @@ class ImageTransportSurfaceOverlayMac : public gfx::GLSurface,
scoped_ptr<ImageTransportHelper> helper_;
base::scoped_nsobject<CAContext> ca_context_;
base::scoped_nsobject<CALayer> layer_;
+ base::scoped_nsobject<CALayer> partial_damage_layer_;
gfx::Size pixel_size_;
float scale_factor_;
@@ -94,6 +95,10 @@ class ImageTransportSurfaceOverlayMac : public gfx::GLSurface,
// every swap and also by a callback.
std::deque<linked_ptr<PendingSwap>> pending_swaps_;
+ // The union of the damage rects of SwapBuffersInternal since the last
+ // non-partial swap.
+ gfx::Rect accumulated_partial_damage_pixel_rect_;
+
// The display link used to compute the time for callbacks.
scoped_refptr<ui::DisplayLinkMac> display_link_mac_;
« no previous file with comments | « no previous file | content/common/gpu/image_transport_surface_overlay_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698