diff options
author | fischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-23 09:29:47 +0000 |
---|---|---|
committer | fischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-23 09:29:47 +0000 |
commit | fd1881e176f8680db2db630e0dc4de2378c32f7c (patch) | |
tree | c92625477095b61d8b24c63cb8e2dde8947b6d98 /content/renderer | |
parent | ab5ce53021e15f1c93816cd0e40f778b26561afe (diff) | |
download | chromium_src-fd1881e176f8680db2db630e0dc4de2378c32f7c.zip chromium_src-fd1881e176f8680db2db630e0dc4de2378c32f7c.tar.gz chromium_src-fd1881e176f8680db2db630e0dc4de2378c32f7c.tar.bz2 |
Insert an event marker on the VDA context3d for better debuggability.
Review URL: https://chromiumcodereview.appspot.com/10879026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152965 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer')
-rw-r--r-- | content/renderer/media/renderer_gpu_video_decoder_factories.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/content/renderer/media/renderer_gpu_video_decoder_factories.cc b/content/renderer/media/renderer_gpu_video_decoder_factories.cc index 9fa05b3..30ffde7 100644 --- a/content/renderer/media/renderer_gpu_video_decoder_factories.cc +++ b/content/renderer/media/renderer_gpu_video_decoder_factories.cc @@ -47,8 +47,13 @@ void RendererGpuVideoDecoderFactories::AsyncGetContext( WebGraphicsContext3DCommandBufferImpl* context, base::WaitableEvent* waiter) { context_ = context->AsWeakPtr(); - if (context_) - context_->makeContextCurrent(); + if (context_) { + if (context_->makeContextCurrent()) { + // Called once per media player, but is a no-op after the first one in + // each renderer. + context_->insertEventMarkerEXT("GpuVDAContext3D"); + } + } if (waiter) waiter->Signal(); } |