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

Unified Diff: chrome/gpu/gpu_arc_video_service.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/gpu_arc_video_service.h ('k') | content/content_gpu.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/gpu/gpu_arc_video_service.cc
diff --git a/chrome/gpu/gpu_arc_video_service.cc b/chrome/gpu/gpu_arc_video_service.cc
index bb20aad9c487062c06fcc1df58934a08265c8977..b765b10085cdc392b7b4e6ff0488cba76c61b498 100644
--- a/chrome/gpu/gpu_arc_video_service.cc
+++ b/chrome/gpu/gpu_arc_video_service.cc
@@ -132,11 +132,15 @@ struct TypeConverter<chromeos::arc::ArcVideoAccelerator::DmabufPlane,
namespace chromeos {
namespace arc {
-GpuArcVideoService::GpuArcVideoService() : binding_(this) {}
+GpuArcVideoService::GpuArcVideoService(
+ const gpu::GpuPreferences& gpu_preferences)
+ : gpu_preferences_(gpu_preferences), binding_(this) {}
GpuArcVideoService::GpuArcVideoService(
- ::arc::mojom::VideoAcceleratorServiceRequest request)
- : accelerator_(new ArcGpuVideoDecodeAccelerator()),
+ ::arc::mojom::VideoAcceleratorServiceRequest request,
+ const gpu::GpuPreferences& gpu_preferences)
+ : gpu_preferences_(gpu_preferences),
+ accelerator_(new ArcGpuVideoDecodeAccelerator(gpu_preferences_)),
binding_(this, std::move(request)) {
DVLOG(2) << "GpuArcVideoService connected";
binding_.set_connection_error_handler(base::Bind(&OnConnectionError));
@@ -154,7 +158,7 @@ void GpuArcVideoService::Connect(
request.PassMessagePipe(), 0u));
client_.set_connection_error_handler(base::Bind(&OnConnectionError));
- accelerator_.reset(new ArcGpuVideoDecodeAccelerator());
+ accelerator_.reset(new ArcGpuVideoDecodeAccelerator(gpu_preferences_));
::arc::mojom::VideoAcceleratorServicePtr service;
binding_.Bind(GetProxy(&service));
« no previous file with comments | « chrome/gpu/gpu_arc_video_service.h ('k') | content/content_gpu.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698