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

Unified Diff: ui/gl/gl_surface.h

Issue 2006923006: Move all CARendererLayerTree parameters to separate struct. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 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: ui/gl/gl_surface.h
diff --git a/ui/gl/gl_surface.h b/ui/gl/gl_surface.h
index 981e0ed60020c336f2dee11d22523c230129e5aa..56511c6c3728877a4c65d931c17a291a60b502b1 100644
--- a/ui/gl/gl_surface.h
+++ b/ui/gl/gl_surface.h
@@ -26,6 +26,10 @@ class Transform;
class VSyncProvider;
}
+namespace ui {
+struct CARendererLayerParams;
+}
+
namespace gl {
class GLContext;
@@ -173,17 +177,8 @@ class GL_EXPORT GLSurface : public base::RefCounted<GLSurface> {
// Schedule a CALayer to be shown at swap time.
// All arguments correspond to their CALayer properties.
- virtual bool ScheduleCALayer(GLImage* contents_image,
- const gfx::RectF& contents_rect,
- float opacity,
- unsigned background_color,
- unsigned edge_aa_mask,
- const gfx::RectF& rect,
- bool is_clipped,
- const gfx::RectF& clip_rect,
- const gfx::Transform& transform,
- int sorting_content_id,
- unsigned filter);
+ virtual bool ScheduleCALayer(const ui::CARendererLayerParams& params);
+
struct GL_EXPORT CALayerInUseQuery {
CALayerInUseQuery();
explicit CALayerInUseQuery(const CALayerInUseQuery&);

Powered by Google App Engine
This is Rietveld 408576698