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

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

Issue 2684933003: Move frame_sink_id management to framesink_manager.cc/h from (Closed)
Patch Set: Created 3 years, 10 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 27cceecf92514fc10ee382ef714af7668a9dcd51..0a34118605bd9e9b3fb808bc0404111b98900f0b 100644
--- a/content/browser/compositor/surface_utils.cc
+++ b/content/browser/compositor/surface_utils.cc
@@ -179,6 +179,17 @@ cc::SurfaceManager* GetSurfaceManager() {
#endif
}
+cc::FrameSinkManager* GetFrameSinkManager() {
+#if defined(OS_ANDROID)
+ return ContextProviderFactoryImpl::GetInstance()->GetFrameSinkManager();
+#else
+ ImageTransportFactory* factory = ImageTransportFactory::GetInstance();
+ if (factory == NULL)
+ return nullptr;
+ return factory->GetContextFactoryPrivate()->GetFrameSinkManager();
+#endif
+}
+
void CopyFromCompositingSurfaceHasResult(
const gfx::Size& dst_size_in_pixel,
const SkColorType color_type,

Powered by Google App Engine
This is Rietveld 408576698