| Index: content/browser/compositor/surface_utils.cc
|
| diff --git a/content/browser/compositor/surface_utils.cc b/content/browser/compositor/surface_utils.cc
|
| index a0d1b02a9053c8f08f4b84f628817df9d355a026..f741a4c10eeed7c624c8b733bbda897398c86854 100644
|
| --- a/content/browser/compositor/surface_utils.cc
|
| +++ b/content/browser/compositor/surface_utils.cc
|
| @@ -11,6 +11,7 @@
|
| #include "cc/output/copy_output_result.h"
|
| #include "cc/resources/single_release_callback.h"
|
| #include "components/display_compositor/gl_helper.h"
|
| +#include "content/browser/compositor/frame_sink_manager_host.h"
|
| #include "skia/ext/image_operations.h"
|
| #include "third_party/skia/include/core/SkCanvas.h"
|
| #include "third_party/skia/include/core/SkColorFilter.h"
|
| @@ -178,6 +179,17 @@ cc::SurfaceManager* GetSurfaceManager() {
|
| #endif
|
| }
|
|
|
| +FrameSinkManagerHost* GetFrameSinkManagerHost() {
|
| +#if defined(OS_ANDROID)
|
| + return CompositorImpl::GetFrameSinkManagerHost();
|
| +#else
|
| + ImageTransportFactory* factory = ImageTransportFactory::GetInstance();
|
| + if (!factory)
|
| + return nullptr;
|
| + return factory->GetFrameSinkManagerHost();
|
| +#endif
|
| +}
|
| +
|
| void CopyFromCompositingSurfaceHasResult(
|
| const gfx::Size& dst_size_in_pixel,
|
| const SkColorType color_type,
|
|
|