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

Unified Diff: ui/gl/gl_surface.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
Index: ui/gl/gl_surface.h
diff --git a/ui/gl/gl_surface.h b/ui/gl/gl_surface.h
index 7fc65f7d27075ce9d2c0c96e9552a5cec46c27f1..8659cb812319e32b289ba51ba94e681e69d8e6f0 100644
--- a/ui/gl/gl_surface.h
+++ b/ui/gl/gl_surface.h
@@ -26,6 +26,7 @@ class GLImage;
namespace gfx {
class GLContext;
+class Transform;
class VSyncProvider;
// Encapsulates a surface that can be rendered to with GL, hiding platform
@@ -144,6 +145,15 @@ class GL_EXPORT GLSurface : public base::RefCounted<GLSurface> {
const Rect& bounds_rect,
const RectF& crop_rect);
+ // Schedule a CALayer to be shown at swap time.
+ // All arguments correspond to their CALayer properties.
+ virtual bool ScheduleCALayer(gl::GLImage* contents_image,
+ const RectF& contents_rect,
+ float opacity,
+ unsigned background_color,
+ const SizeF& size,
+ const Transform& transform);
+
virtual bool IsSurfaceless() const;
// Create a GL surface that renders directly to a view.
« no previous file with comments | « third_party/mojo/src/mojo/public/c/gles2/gles2_call_visitor_chromium_extension_autogen.h ('k') | ui/gl/gl_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698