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

Unified Diff: media/gpu/ipc/service/gpu_video_decode_accelerator.h

Issue 2864603002: Provide callback to create mojo AndroidOverlays to AVDA. (Closed)
Patch Set: fixed deps Created 3 years, 7 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: media/gpu/ipc/service/gpu_video_decode_accelerator.h
diff --git a/media/gpu/ipc/service/gpu_video_decode_accelerator.h b/media/gpu/ipc/service/gpu_video_decode_accelerator.h
index 6c6d0bff669394dfcb204194f60bed81127ebc0e..4d03ce7e06a88f75b07e8d610c01cd28b8fcdb1a 100644
--- a/media/gpu/ipc/service/gpu_video_decode_accelerator.h
+++ b/media/gpu/ipc/service/gpu_video_decode_accelerator.h
@@ -30,6 +30,10 @@ class GpuDriverBugWorkarounds;
struct GpuPreferences;
} // namespace gpu
+namespace service_manager {
+class Connector;
+} // namespace service_manager
+
namespace media {
class GpuVideoDecodeAccelerator
@@ -44,7 +48,9 @@ class GpuVideoDecodeAccelerator
GpuVideoDecodeAccelerator(
int32_t host_route_id,
gpu::GpuCommandBufferStub* stub,
- const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner);
+ const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner,
+ service_manager::Connector* connector,
+ const char* browser_service_name);
// Static query for the capabilities, which includes the supported profiles.
// This query calls the appropriate platform-specific version. The returned
@@ -151,6 +157,10 @@ class GpuVideoDecodeAccelerator
// GPU IO thread task runner.
const scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
+ // Optional mojo connector and the name of the browser service.
+ service_manager::Connector* connector_ = nullptr;
+ const char* browser_service_name_ = nullptr;
+
// Weak pointers will be invalidated on IO thread.
base::WeakPtrFactory<Client> weak_factory_for_io_;

Powered by Google App Engine
This is Rietveld 408576698