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

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

Issue 2028303002: Modify ImageTransportSurfaceOverlayMac to allow pipelining (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix GL API scoping Created 4 years, 7 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 | « no previous file | gpu/ipc/service/image_transport_surface_overlay_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d8b4fce5690306e65abd8160d9dc42550b1f2984..75264cb179b260863170654b71de4aae1e3733d9 100644
--- a/gpu/ipc/service/image_transport_surface_overlay_mac.h
+++ b/gpu/ipc/service/image_transport_surface_overlay_mac.h
@@ -25,6 +25,10 @@ namespace ui {
class CALayerTreeCoordinator;
}
+namespace gl {
+class GLFence;
+}
+
namespace gpu {
class ImageTransportSurfaceOverlayMac : public gl::GLSurface,
@@ -94,6 +98,12 @@ class ImageTransportSurfaceOverlayMac : public gl::GLSurface,
gfx::Size pixel_size_;
float scale_factor_;
+ // 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.
+ std::unique_ptr<gl::GLFence> previous_frame_fence_;
+ base::ScopedTypeRef<CGLContextObj> fence_context_obj_;
+
// The renderer ID that all contexts made current to this surface should be
// targeting.
GLint gl_renderer_id_;
« no previous file with comments | « no previous file | gpu/ipc/service/image_transport_surface_overlay_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698