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

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

Issue 176923018: Revert 253259 "Move ContextProvider binding to inside GpuVideoAc..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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
Index: trunk/src/content/renderer/media/renderer_gpu_video_accelerator_factories.cc
===================================================================
--- trunk/src/content/renderer/media/renderer_gpu_video_accelerator_factories.cc (revision 253325)
+++ trunk/src/content/renderer/media/renderer_gpu_video_accelerator_factories.cc (working copy)
@@ -19,6 +19,7 @@
namespace content {
+RendererGpuVideoAcceleratorFactories::~RendererGpuVideoAcceleratorFactories() {}
RendererGpuVideoAcceleratorFactories::RendererGpuVideoAcceleratorFactories(
GpuChannelHost* gpu_channel_host,
const scoped_refptr<base::MessageLoopProxy>& message_loop_proxy,
@@ -26,20 +27,8 @@
: task_runner_(message_loop_proxy),
gpu_channel_host_(gpu_channel_host),
context_provider_(context_provider),
- thread_safe_sender_(ChildThread::current()->thread_safe_sender()) {
- task_runner_->PostTask(
- FROM_HERE,
- base::Bind(&RendererGpuVideoAcceleratorFactories::BindContext, this));
-}
+ thread_safe_sender_(ChildThread::current()->thread_safe_sender()) {}
-RendererGpuVideoAcceleratorFactories::~RendererGpuVideoAcceleratorFactories() {}
-
-void RendererGpuVideoAcceleratorFactories::BindContext() {
- DCHECK(task_runner_->BelongsToCurrentThread());
- if (!context_provider_->BindToCurrentThread())
- context_provider_ = NULL;
-}
-
WebGraphicsContext3DCommandBufferImpl*
RendererGpuVideoAcceleratorFactories::GetContext3d() {
DCHECK(task_runner_->BelongsToCurrentThread());

Powered by Google App Engine
This is Rietveld 408576698