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

Unified Diff: content/public/app/content_main_delegate.cc

Issue 1646853002: Add embedder api for participating in gpu logic (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix crash in tests Created 4 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
« no previous file with comments | « content/public/app/content_main_delegate.h ('k') | content/public/browser/gpu_service_registry.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/app/content_main_delegate.cc
diff --git a/content/public/app/content_main_delegate.cc b/content/public/app/content_main_delegate.cc
index 3c979be537e751738930ee2d697422e28a610c87..16fd80440f59c8509002aec8bea0c91abb77fe1d 100644
--- a/content/public/app/content_main_delegate.cc
+++ b/content/public/app/content_main_delegate.cc
@@ -11,6 +11,7 @@
#endif
#if !defined(OS_IOS)
+#include "content/public/gpu/content_gpu_client.h"
#include "content/public/plugin/content_plugin_client.h"
#include "content/public/renderer/content_renderer_client.h"
#include "content/public/utility/content_utility_client.h"
@@ -64,6 +65,14 @@ ContentBrowserClient* ContentMainDelegate::CreateContentBrowserClient() {
#endif
}
+ContentGpuClient* ContentMainDelegate::CreateContentGpuClient() {
+#if defined(OS_IOS) || defined(CHROME_MULTIPLE_DLL_BROWSER)
+ return NULL;
+#else
+ return new ContentGpuClient();
+#endif
+}
+
ContentPluginClient* ContentMainDelegate::CreateContentPluginClient() {
#if defined(OS_IOS) || defined(CHROME_MULTIPLE_DLL_BROWSER)
return NULL;
« no previous file with comments | « content/public/app/content_main_delegate.h ('k') | content/public/browser/gpu_service_registry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698