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

Unified Diff: chrome/gpu/chrome_content_gpu_client.cc

Issue 2171473003: Remove content::GpuVideoDecodeAcceleratorFactory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gpu_init_order
Patch Set: rebase Created 4 years, 5 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 | « chrome/gpu/chrome_content_gpu_client.h ('k') | chrome/gpu/gpu_arc_video_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/gpu/chrome_content_gpu_client.cc
diff --git a/chrome/gpu/chrome_content_gpu_client.cc b/chrome/gpu/chrome_content_gpu_client.cc
index 870ce620afa4760727bc355afd5d7f7f4c7e426d..6d3003559dbecdfb109ac6f1a6e86d0d00797ac5 100644
--- a/chrome/gpu/chrome_content_gpu_client.cc
+++ b/chrome/gpu/chrome_content_gpu_client.cc
@@ -15,22 +15,24 @@
namespace {
void DeprecatedCreateGpuArcVideoService(
+ const gpu::GpuPreferences& gpu_preferences,
::arc::mojom::VideoAcceleratorServiceClientRequest request) {
// GpuArcVideoService is strongly bound to the Mojo message pipe it
// is connected to. When that message pipe is closed, either explicitly on the
// other end (in the browser process), or by a connection error, this object
// will be destroyed.
- auto* service = new chromeos::arc::GpuArcVideoService();
+ auto* service = new chromeos::arc::GpuArcVideoService(gpu_preferences);
service->Connect(std::move(request));
}
void CreateGpuArcVideoService(
+ const gpu::GpuPreferences& gpu_preferences,
::arc::mojom::VideoAcceleratorServiceRequest request) {
// GpuArcVideoService is strongly bound to the Mojo message pipe it
// is connected to. When that message pipe is closed, either explicitly on the
// other end (in the browser process), or by a connection error, this object
// will be destroyed.
- new chromeos::arc::GpuArcVideoService(std::move(request));
+ new chromeos::arc::GpuArcVideoService(std::move(request), gpu_preferences);
}
} // namespace
@@ -41,10 +43,13 @@ ChromeContentGpuClient::ChromeContentGpuClient() {}
ChromeContentGpuClient::~ChromeContentGpuClient() {}
void ChromeContentGpuClient::ExposeInterfacesToBrowser(
- shell::InterfaceRegistry* registry) {
+ shell::InterfaceRegistry* registry,
+ const gpu::GpuPreferences& gpu_preferences) {
#if defined(OS_CHROMEOS)
- registry->AddInterface(base::Bind(&CreateGpuArcVideoService));
- registry->AddInterface(base::Bind(&DeprecatedCreateGpuArcVideoService));
+ registry->AddInterface(
+ base::Bind(&CreateGpuArcVideoService, gpu_preferences));
+ registry->AddInterface(
+ base::Bind(&DeprecatedCreateGpuArcVideoService, gpu_preferences));
#endif
}
« no previous file with comments | « chrome/gpu/chrome_content_gpu_client.h ('k') | chrome/gpu/gpu_arc_video_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698