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

Unified Diff: content/common/gpu/image_transport_surface_overlay_mac.h

Issue 1844053002: Add detached mode plumbing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: And target Created 4 years, 9 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: content/common/gpu/image_transport_surface_overlay_mac.h
diff --git a/content/common/gpu/image_transport_surface_overlay_mac.h b/content/common/gpu/image_transport_surface_overlay_mac.h
index 84527798958cd921083ef4aceaca5c2ec5ee1a63..67d73d48baceb741454a040a5c602f88ba2fbb5d 100644
--- a/content/common/gpu/image_transport_surface_overlay_mac.h
+++ b/content/common/gpu/image_transport_surface_overlay_mac.h
@@ -17,6 +17,7 @@
#include "ui/gl/gl_surface.h"
#include "ui/gl/gpu_switching_observer.h"
+@class AVSampleBufferDisplayLayer;
@class CAContext;
@class CALayer;
@@ -76,13 +77,6 @@ class ImageTransportSurfaceOverlayMac : public gfx::GLSurface,
void BufferPresented(int32_t surface_id,
const base::TimeTicks& vsync_timebase,
const base::TimeDelta& vsync_interval);
- void SendAcceleratedSurfaceBuffersSwapped(
- int32_t surface_id,
- CAContextID ca_context_id,
- const gfx::ScopedRefCountedIOSurfaceMachPort& io_surface,
- const gfx::Size& size,
- float scale_factor,
- std::vector<ui::LatencyInfo> latency_info);
gfx::SwapResult SwapBuffersInternal(const gfx::Rect& pixel_damage_rect);
// Returns true if the front of |pending_swaps_| has completed, or has timed
@@ -119,6 +113,9 @@ class ImageTransportSurfaceOverlayMac : public gfx::GLSurface,
base::scoped_nsobject<CAContext> ca_context_;
base::scoped_nsobject<CALayer> ca_root_layer_;
+ base::scoped_nsobject<CAContext> detached_ca_context_;
+ base::scoped_nsobject<AVSampleBufferDisplayLayer> detached_av_layer_;
+
gfx::Size pixel_size_;
float scale_factor_;
« no previous file with comments | « content/common/gpu/gpu_channel_manager_delegate.h ('k') | content/common/gpu/image_transport_surface_overlay_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698