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

Unified Diff: gpu/ipc/service/image_transport_surface_overlay_mac.h

Issue 2067503003: Add a new command buffer function glScheduleCALayerInUseQueryCHROMIUM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor fix. 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: gpu/ipc/service/image_transport_surface_overlay_mac.h
diff --git a/gpu/ipc/service/image_transport_surface_overlay_mac.h b/gpu/ipc/service/image_transport_surface_overlay_mac.h
index 75264cb179b260863170654b71de4aae1e3733d9..3c3471af189be0717dc46297d1ca5f1b6d9f1de1 100644
--- a/gpu/ipc/service/image_transport_surface_overlay_mac.h
+++ b/gpu/ipc/service/image_transport_surface_overlay_mac.h
@@ -66,6 +66,8 @@ class ImageTransportSurfaceOverlayMac : public gl::GLSurface,
const gfx::Transform& transform,
int sorting_context_id,
unsigned filter) override;
+ void ScheduleCALayerInUseQuery(
+ std::vector<CALayerInUseQuery> queries) override;
bool IsSurfaceless() const override;
// ui::GpuSwitchingObserver implementation.
@@ -98,6 +100,16 @@ class ImageTransportSurfaceOverlayMac : public gl::GLSurface,
gfx::Size pixel_size_;
float scale_factor_;
+ struct IOSurfaceInUseQuery {
+ IOSurfaceInUseQuery();
+ explicit IOSurfaceInUseQuery(IOSurfaceInUseQuery&);
piman 2016/06/14 00:58:56 Did you mean IOSurfaceInUseQuery(const IOSurfaceIn
erikchen 2016/06/14 01:47:51 yes, done.
+ explicit IOSurfaceInUseQuery(IOSurfaceInUseQuery&&);
+ ~IOSurfaceInUseQuery();
+ unsigned texture;
piman 2016/06/14 00:58:56 = 0;
erikchen 2016/06/14 01:47:51 Done.
+ base::ScopedCFTypeRef<IOSurfaceRef> io_surface;
+ };
+ std::vector<IOSurfaceInUseQuery> io_surface_in_use_queries_;
+
// A GLFence marking the end of the previous frame. Must only be accessed
// while in a ScopedSetGLToRealGLApi, and while the associated
// |previous_frame_context_| is bound.

Powered by Google App Engine
This is Rietveld 408576698