| Index: content/browser/renderer_host/compositing_iosurface_mac.h
|
| diff --git a/content/browser/renderer_host/compositing_iosurface_mac.h b/content/browser/renderer_host/compositing_iosurface_mac.h
|
| index 28e1a11d4a2a2b698717f90dfbb653ee4bad135b..98e11b168b08f9411363042f1d2fe48a9e932ff5 100644
|
| --- a/content/browser/renderer_host/compositing_iosurface_mac.h
|
| +++ b/content/browser/renderer_host/compositing_iosurface_mac.h
|
| @@ -30,6 +30,8 @@ class Rect;
|
|
|
| namespace content {
|
|
|
| +class RenderWidgetHostViewFrameSubscriber;
|
| +
|
| // This class manages an OpenGL context and IOSurface for the accelerated
|
| // compositing code path. The GL context is attached to
|
| // RenderWidgetHostViewCocoa for blitting the IOSurface.
|
| @@ -55,7 +57,10 @@ class CompositingIOSurfaceMac {
|
| // Blit the IOSurface at the upper-left corner of the |view|. If |view| window
|
| // size is larger than the IOSurface, the remaining right and bottom edges
|
| // will be white. |scaleFactor| is 1 in normal views, 2 in HiDPI views.
|
| - void DrawIOSurface(NSView* view, float scale_factor);
|
| + // |frame_subscriber| listens to this draw event and provides output buffer
|
| + // for copying this frame into.
|
| + void DrawIOSurface(NSView* view, float scale_factor,
|
| + RenderWidgetHostViewFrameSubscriber* frame_subscriber);
|
|
|
| // Copy the data of the "live" OpenGL texture referring to this IOSurfaceRef
|
| // into |out|. The copied region is specified with |src_pixel_subrect| and
|
| @@ -228,6 +233,12 @@ class CompositingIOSurfaceMac {
|
| void StartOrContinueDisplayLink();
|
| void StopDisplayLink();
|
|
|
| + base::Closure CopyToVideoFrameInternal(
|
| + const gfx::Rect& src_subrect,
|
| + float src_scale_factor,
|
| + const scoped_refptr<media::VideoFrame>& target,
|
| + const base::Callback<void(bool)>& callback);
|
| +
|
| // Two implementations of CopyTo() in synchronous and asynchronous mode.
|
| // These may copy regions smaller than the requested |src_pixel_subrect| if
|
| // the iosurface is smaller than |src_pixel_subrect|.
|
|
|