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

Unified Diff: cc/output/gl_renderer.h

Issue 2224113002: Implement new RPDQ copy logic for CALayer promotion. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review feedback Created 4 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 | « cc/output/ca_layer_overlay.cc ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/gl_renderer.h
diff --git a/cc/output/gl_renderer.h b/cc/output/gl_renderer.h
index 4e5c59caace131de28e1ef37e28843c7b60716e9..d1a9eb6537d3038763e144c54bca0f07caa11004 100644
--- a/cc/output/gl_renderer.h
+++ b/cc/output/gl_renderer.h
@@ -270,6 +270,22 @@ class CC_EXPORT GLRenderer : public DirectRenderer {
void ScheduleCALayers(DrawingFrame* frame);
void ScheduleOverlays(DrawingFrame* frame);
+ // Copies the contents of the render pass draw quad, including filter effects,
+ // to an overlay resource, returned in |resource|. The resource is allocated
+ // from |overlay_resource_pool_|.
+ // The resulting Resource may be larger than the original quad. The new size
+ // and position is placed in |new_bounds|.
+ void CopyRenderPassDrawQuadToOverlayResource(
+ const CALayerOverlay* ca_layer_overlay,
+ Resource** resource,
+ DrawingFrame* frame,
+ gfx::RectF* new_bounds);
+
+ // Schedules the |ca_layer_overlay|, which is guaranteed to have a non-null
+ // |rpdq| parameter.
+ void ScheduleRenderPassDrawQuad(const CALayerOverlay* ca_layer_overlay,
+ DrawingFrame* external_frame);
+
using OverlayResourceLock =
std::unique_ptr<ResourceProvider::ScopedReadLockGL>;
using OverlayResourceLockList = std::vector<OverlayResourceLock>;
@@ -534,6 +550,14 @@ class CC_EXPORT GLRenderer : public DirectRenderer {
// If true, draw a green border after compositing a texture quad using GL.
bool gl_composited_texture_quad_border_;
+
+ // The method FlippedFramebuffer determines whether the framebuffer associated
+ // with a DrawingFrame is flipped. It makes the assumption that the
+ // DrawingFrame is being used as part of a render pass. If a DrawingFrame is
+ // not being used as part of a render pass, setting it here forces
+ // FlippedFramebuffer to return |true|.
+ const DrawingFrame* force_drawing_frame_framebuffer_flipped_;
+
BoundGeometry bound_geometry_;
DISALLOW_COPY_AND_ASSIGN(GLRenderer);
};
« no previous file with comments | « cc/output/ca_layer_overlay.cc ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698