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

Unified Diff: ui/gl/gl_surface.h

Issue 2067503003: Add a new command buffer function glScheduleCALayerInUseQueryCHROMIUM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Include gl_image.h 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
« no previous file with comments | « ui/gl/gl_enums_implementation_autogen.h ('k') | ui/gl/gl_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface.h
diff --git a/ui/gl/gl_surface.h b/ui/gl/gl_surface.h
index c7fbf46e2cd6a2c5de4c595550cc87922df6e9a2..981e0ed60020c336f2dee11d22523c230129e5aa 100644
--- a/ui/gl/gl_surface.h
+++ b/ui/gl/gl_surface.h
@@ -18,6 +18,7 @@
#include "ui/gfx/overlay_transform.h"
#include "ui/gfx/swap_result.h"
#include "ui/gl/gl_export.h"
+#include "ui/gl/gl_image.h"
#include "ui/gl/gl_implementation.h"
namespace gfx {
@@ -28,7 +29,6 @@ class VSyncProvider;
namespace gl {
class GLContext;
-class GLImage;
// Encapsulates a surface that can be rendered to with GL, hiding platform
// specific management.
@@ -184,6 +184,15 @@ class GL_EXPORT GLSurface : public base::RefCounted<GLSurface> {
const gfx::Transform& transform,
int sorting_content_id,
unsigned filter);
+ struct GL_EXPORT CALayerInUseQuery {
+ CALayerInUseQuery();
+ explicit CALayerInUseQuery(const CALayerInUseQuery&);
+ ~CALayerInUseQuery();
+ unsigned texture = 0;
+ scoped_refptr<GLImage> image;
+ };
+ virtual void ScheduleCALayerInUseQuery(
+ std::vector<CALayerInUseQuery> queries);
virtual bool IsSurfaceless() const;
« no previous file with comments | « ui/gl/gl_enums_implementation_autogen.h ('k') | ui/gl/gl_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698