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

Unified Diff: cc/output/gl_renderer.h

Issue 2205133003: Implement new RPDQ copy logic for CALayer promotion. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp60_more_refactor
Patch Set: Fix vertical flip. 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
Index: cc/output/gl_renderer.h
diff --git a/cc/output/gl_renderer.h b/cc/output/gl_renderer.h
index 4261f10814e206e944cb84fc327cd1c658ecd5b0..465935ee65a042d1aab30aa837f68f123b892983 100644
--- a/cc/output/gl_renderer.h
+++ b/cc/output/gl_renderer.h
@@ -274,6 +274,15 @@ class CC_EXPORT GLRenderer : public DirectRenderer {
// |resource|. The resource is allocated from |overlay_resource_pool_|.
void CopyRenderPassToOverlayResource(const RenderPassId& render_pass_id,
Resource** resource);
+ // 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, so this
+ // function may also modify properties of CALayerOverlay, including
+ // |shared_state|.
+ void CopyRenderPassDrawQuadToOverlayResource(CALayerOverlay* ca_layer_overlay,
+ Resource** resource,
+ DrawingFrame* frame);
using OverlayResourceLock =
std::unique_ptr<ResourceProvider::ScopedReadLockGL>;
@@ -537,6 +546,13 @@ class CC_EXPORT GLRenderer : public DirectRenderer {
// overlay resource. This means the GLRenderer needs its own ResourcePool.
std::unique_ptr<ResourcePool> overlay_resource_pool_;
+ // 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);
};

Powered by Google App Engine
This is Rietveld 408576698