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

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

Issue 1369243005: Mac Overlays: Allow the primary plane to be optionally scheduled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor
Patch Set: For ccameron 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 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 0bcff6913cfd3d4d6cf875e60d395ea72475e606..e50c9d058a82d08d98d133f38ebd54dda38f8687 100644
--- a/content/common/gpu/image_transport_surface_overlay_mac.h
+++ b/content/common/gpu/image_transport_surface_overlay_mac.h
@@ -65,7 +65,7 @@ class ImageTransportSurfaceOverlayMac : public gfx::GLSurface,
gfx::SwapResult SwapBuffersInternal(const gfx::Rect& pixel_damage_rect);
void UpdateRootAndPartialDamagePlanes(
- const std::vector<linked_ptr<OverlayPlane>>& new_overlay_planes,
+ const linked_ptr<OverlayPlane>& new_root_plane,
const gfx::RectF& dip_damage_rect);
void UpdateOverlayPlanes(
const std::vector<linked_ptr<OverlayPlane>>& new_overlay_planes);
@@ -108,8 +108,9 @@ class ImageTransportSurfaceOverlayMac : public gfx::GLSurface,
// targeting.
GLint gl_renderer_id_;
- // Overlay planes that have been scheduled, but have not had a subsequent
- // SwapBuffers call made yet.
+ // Planes that have been scheduled, but have not had a subsequent SwapBuffers
+ // call made yet.
+ linked_ptr<OverlayPlane> pending_root_plane_;
std::vector<linked_ptr<OverlayPlane>> pending_overlay_planes_;
// A queue of all frames that have been created by SwapBuffersInternal but
« 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