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

Unified Diff: content/browser/compositor/surface_utils.cc

Issue 2803993003: Introduce FrameSinkManagerHost in content/browser/. (Closed)
Patch Set: Fix android. Created 3 years, 8 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/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,
« no previous file with comments | « content/browser/compositor/surface_utils.h ('k') | content/browser/compositor/test/no_transport_image_transport_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698