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

Issue 10832264: Fix lifecycle-vs-threads of GpuVDAContext3D. (Closed)

Created:
8 years, 4 months ago by Ami GONE FROM CHROMIUM
Modified:
8 years, 4 months ago
Reviewers:
piman
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, apatrick_chromium, Pawel Osciak, jamesr
Visibility:
Public.

Description

Fix lifecycle-vs-threads of GpuVDAContext3D. This context3d is meant to be created on the render thread but can only be dereferenced on the compositor thread. Before this CL this was violated as RenderThreadImpl::GetGpuVDAContext3D() checked for context loss to decide whether to recreate the context. Now context loss proactively notifies the render thread, instead. BUG=142047 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=151352

Patch Set 1 : . #

Total comments: 4

Patch Set 2 : piman CR response #

Total comments: 3

Patch Set 3 : fwd declare callback class. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -28 lines) Patch
M content/renderer/media/renderer_gpu_video_decoder_factories.h View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M content/renderer/media/renderer_gpu_video_decoder_factories.cc View 1 2 2 chunks +12 lines, -7 lines 0 comments Download
M content/renderer/render_thread_impl.h View 1 2 2 chunks +7 lines, -2 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 chunks +30 lines, -14 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Ami GONE FROM CHROMIUM
jamesr & piman: please review. posciak: FYI.
8 years, 4 months ago (2012-08-13 17:14:06 UTC) #1
piman
https://chromiumcodereview.appspot.com/10832264/diff/5001/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc File content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc (right): https://chromiumcodereview.appspot.com/10832264/diff/5001/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc#newcode1428 content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc:1428: DCHECK(!context_lost_callback_ || !cb); why? https://chromiumcodereview.appspot.com/10832264/diff/5001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://chromiumcodereview.appspot.com/10832264/diff/5001/content/renderer/render_thread_impl.cc#newcode775 ...
8 years, 4 months ago (2012-08-13 17:23:35 UTC) #2
Ami GONE FROM CHROMIUM
https://chromiumcodereview.appspot.com/10832264/diff/5001/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc File content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc (right): https://chromiumcodereview.appspot.com/10832264/diff/5001/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc#newcode1428 content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc:1428: DCHECK(!context_lost_callback_ || !cb); On 2012/08/13 17:23:35, piman wrote: > ...
8 years, 4 months ago (2012-08-13 17:38:16 UTC) #3
piman
lgtm https://chromiumcodereview.appspot.com/10832264/diff/10001/content/renderer/render_thread_impl.h File content/renderer/render_thread_impl.h (right): https://chromiumcodereview.appspot.com/10832264/diff/10001/content/renderer/render_thread_impl.h#newcode307 content/renderer/render_thread_impl.h:307: : public WebKit::WebGraphicsContext3D::WebGraphicsContextLostCallback { Note: I'm fine with ...
8 years, 4 months ago (2012-08-13 17:45:05 UTC) #4
Ami GONE FROM CHROMIUM
https://chromiumcodereview.appspot.com/10832264/diff/10001/content/renderer/render_thread_impl.h File content/renderer/render_thread_impl.h (right): https://chromiumcodereview.appspot.com/10832264/diff/10001/content/renderer/render_thread_impl.h#newcode307 content/renderer/render_thread_impl.h:307: : public WebKit::WebGraphicsContext3D::WebGraphicsContextLostCallback { On 2012/08/13 17:45:06, piman wrote: ...
8 years, 4 months ago (2012-08-13 17:55:38 UTC) #5
piman
https://chromiumcodereview.appspot.com/10832264/diff/10001/content/renderer/render_thread_impl.h File content/renderer/render_thread_impl.h (right): https://chromiumcodereview.appspot.com/10832264/diff/10001/content/renderer/render_thread_impl.h#newcode307 content/renderer/render_thread_impl.h:307: : public WebKit::WebGraphicsContext3D::WebGraphicsContextLostCallback { On 2012/08/13 17:55:38, Ami Fischman ...
8 years, 4 months ago (2012-08-13 18:35:57 UTC) #6
Ami GONE FROM CHROMIUM
On 2012/08/13 18:35:57, piman wrote: > Nah, you only need it with the destructor of ...
8 years, 4 months ago (2012-08-13 18:50:13 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fischman@chromium.org/10832264/11
8 years, 4 months ago (2012-08-13 19:36:55 UTC) #8
commit-bot: I haz the power
8 years, 4 months ago (2012-08-13 21:21:42 UTC) #9
Change committed as 151352

Powered by Google App Engine
This is Rietveld 408576698