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

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

Issue 2085173002: Don't check IOSurfaceIsInUse for IOSurfaces wrapped in a CVPixelBuffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « 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 d5c34d4787eda03d0cfa6c7c739762bff9f6c599..8231f28a2960253c09ee45521b0ffdf2ad10cc4f 100644
--- a/gpu/ipc/service/image_transport_surface_overlay_mac.h
+++ b/gpu/ipc/service/image_transport_surface_overlay_mac.h
@@ -100,20 +100,7 @@ class ImageTransportSurfaceOverlayMac : public gl::GLSurface,
gfx::Size pixel_size_;
float scale_factor_;
- struct IOSurfaceInUseQuery {
ccameron 2016/06/22 02:06:22 Seems like reasonable cleanp.
- IOSurfaceInUseQuery();
- explicit IOSurfaceInUseQuery(const IOSurfaceInUseQuery&);
- explicit IOSurfaceInUseQuery(IOSurfaceInUseQuery&&);
- ~IOSurfaceInUseQuery();
-
- // It's possible that the client will have destroyed the texture before
- // SwapBuffersInternal is called. It's important that |texture| is only used
- // as an opaque identifier, since it may no longer point to the same
- // texture.
- unsigned texture = 0;
- base::ScopedCFTypeRef<IOSurfaceRef> io_surface;
- };
- std::vector<IOSurfaceInUseQuery> io_surface_in_use_queries_;
+ std::vector<CALayerInUseQuery> ca_layer_in_use_queries_;
// A GLFence marking the end of the previous frame. Must only be accessed
// while in a ScopedSetGLToRealGLApi, and while the associated
« 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