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

Unified Diff: content/renderer/media/renderer_gpu_video_accelerator_factories.cc

Issue 2526953003: Add MediaGpuChannelManager::LookupChannel(). (Closed)
Patch Set: Document GetCommandBufferRouteId() better. Created 3 years, 11 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/renderer/media/renderer_gpu_video_accelerator_factories.cc
diff --git a/content/renderer/media/renderer_gpu_video_accelerator_factories.cc b/content/renderer/media/renderer_gpu_video_accelerator_factories.cc
index 1fbdb829d93a9dbf2c364afb21ed0418bedf90fc..dff894ac58efdab4fd319e578aaeb671c15890df 100644
--- a/content/renderer/media/renderer_gpu_video_accelerator_factories.cc
+++ b/content/renderer/media/renderer_gpu_video_accelerator_factories.cc
@@ -127,6 +127,13 @@ base::UnguessableToken RendererGpuVideoAcceleratorFactories::GetChannelToken() {
return channel_token_;
}
+int32_t RendererGpuVideoAcceleratorFactories::GetCommandBufferRouteId() {
+ DCHECK(task_runner_->BelongsToCurrentThread());
+ if (!context_provider_)
dcheng 2017/01/10 06:03:42 How come most other things use CheckContextLost()?
sandersd (OOO until July 31) 2017/01/10 23:54:14 I don't care if the returned route_id is invalid,
+ return 0;
+ return context_provider_->GetCommandBufferProxy()->route_id();
+}
+
std::unique_ptr<media::VideoDecodeAccelerator>
RendererGpuVideoAcceleratorFactories::CreateVideoDecodeAccelerator() {
DCHECK(video_accelerator_enabled_);

Powered by Google App Engine
This is Rietveld 408576698