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

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

Issue 1409193007: gpu: Add CHROMIUM_schedule_ca_layer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporate review feedback Created 5 years, 1 month 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 3dcf9e874c28addd820e8abc91e20ff35022344a..017b2836dcda20e95327ececf30f064e2af30636 100644
--- a/content/common/gpu/image_transport_surface_overlay_mac.h
+++ b/content/common/gpu/image_transport_surface_overlay_mac.h
@@ -46,6 +46,12 @@ class ImageTransportSurfaceOverlayMac : public gfx::GLSurface,
gl::GLImage* image,
const gfx::Rect& bounds_rect,
const gfx::RectF& crop_rect) override;
+ bool ScheduleCALayer(gl::GLImage* contents_image,
+ const gfx::RectF& contents_rect,
+ float opacity,
+ unsigned background_color,
+ const gfx::SizeF& bounds_size,
+ const gfx::Transform& transform) override;
bool IsSurfaceless() const override;
// ImageTransportSurface implementation
@@ -66,7 +72,7 @@ class ImageTransportSurfaceOverlayMac : public gfx::GLSurface,
void UpdateRootAndPartialDamagePlanes(
const linked_ptr<OverlayPlane>& new_root_plane,
- const gfx::RectF& dip_damage_rect);
+ const gfx::RectF& pixel_damage_rect);
void UpdateOverlayPlanes(
const std::vector<linked_ptr<OverlayPlane>>& new_overlay_planes);
void UpdateCALayerTree();
@@ -133,6 +139,10 @@ class ImageTransportSurfaceOverlayMac : public gfx::GLSurface,
base::TimeTicks vsync_timebase_;
base::TimeDelta vsync_interval_;
+ // Calls to ScheduleCALayer come in back-to-front. This is reset to 1 at each
+ // swap and increments with each call to ScheduleCALayer.
+ int next_ca_layer_z_order_;
+
base::Timer display_pending_swap_timer_;
base::WeakPtrFactory<ImageTransportSurfaceOverlayMac> weak_factory_;
};
« 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