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

Issue 1859403002: Avoid GpuPreferences exposed in content public gpu interface (Closed)

Created:
4 years, 8 months ago by kcwu
Modified:
4 years, 8 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid GpuPreferences exposed in content public gpu interface Store GpuChildThread in TLS pointer and then GpuVideoDecodeAcceleratorFactory can query GpuPreferences from GpuChildThread internally from aspect of content/. BUG=b/27687678 TEST=video playback as usual Committed: https://crrev.com/7a526cd7c6985df2639f86f43d032a04587dd26e Cr-Commit-Position: refs/heads/master@{#386121}

Patch Set 1 #

Total comments: 4

Patch Set 2 : address jam's comments #

Patch Set 3 : address owen's comments #

Total comments: 2

Patch Set 4 : address jam's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -10 lines) Patch
M content/gpu/gpu_child_thread.h View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M content/gpu/gpu_child_thread.cc View 1 6 chunks +12 lines, -0 lines 0 comments Download
M content/public/gpu/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/public/gpu/gpu_video_decode_accelerator_factory.h View 2 chunks +2 lines, -5 lines 0 comments Download
M content/public/gpu/gpu_video_decode_accelerator_factory.cc View 1 2 3 3 chunks +9 lines, -5 lines 0 comments Download

Messages

Total messages: 15 (4 generated)
kcwu
John, Could you please take a look? I removed GpuPreferences from VDA factory public interface ...
4 years, 8 months ago (2016-04-06 11:56:06 UTC) #2
jam
https://codereview.chromium.org/1859403002/diff/1/content/common/gpu/media/DEPS File content/common/gpu/media/DEPS (right): https://codereview.chromium.org/1859403002/diff/1/content/common/gpu/media/DEPS#newcode2 content/common/gpu/media/DEPS:2: "+content/gpu/gpu_child_thread.h", this isn't allowed. per the comment in the ...
4 years, 8 months ago (2016-04-06 16:22:00 UTC) #3
kcwu
https://codereview.chromium.org/1859403002/diff/1/content/common/gpu/media/DEPS File content/common/gpu/media/DEPS (right): https://codereview.chromium.org/1859403002/diff/1/content/common/gpu/media/DEPS#newcode2 content/common/gpu/media/DEPS:2: "+content/gpu/gpu_child_thread.h", On 2016/04/06 16:22:00, jam wrote: > this isn't ...
4 years, 8 months ago (2016-04-06 17:44:36 UTC) #4
kcwu
Please take another look. Thanks.
4 years, 8 months ago (2016-04-07 00:29:16 UTC) #5
Owen Lin
lgtm % nit https://codereview.chromium.org/1859403002/diff/1/content/gpu/gpu_child_thread.h File content/gpu/gpu_child_thread.h (right): https://codereview.chromium.org/1859403002/diff/1/content/gpu/gpu_child_thread.h#newcode59 content/gpu/gpu_child_thread.h:59: static GpuChildThread* current(); please document it.
4 years, 8 months ago (2016-04-08 01:31:57 UTC) #6
kcwu
https://codereview.chromium.org/1859403002/diff/1/content/gpu/gpu_child_thread.h File content/gpu/gpu_child_thread.h (right): https://codereview.chromium.org/1859403002/diff/1/content/gpu/gpu_child_thread.h#newcode59 content/gpu/gpu_child_thread.h:59: static GpuChildThread* current(); On 2016/04/08 01:31:57, Owen Lin wrote: ...
4 years, 8 months ago (2016-04-08 03:21:36 UTC) #7
jam
lgtm https://codereview.chromium.org/1859403002/diff/40001/content/public/gpu/gpu_video_decode_accelerator_factory.cc File content/public/gpu/gpu_video_decode_accelerator_factory.cc (right): https://codereview.chromium.org/1859403002/diff/40001/content/public/gpu/gpu_video_decode_accelerator_factory.cc#newcode6 content/public/gpu/gpu_video_decode_accelerator_factory.cc:6: #include "content/gpu/gpu_child_thread.h" nit: add blank line before
4 years, 8 months ago (2016-04-08 16:16:25 UTC) #8
kcwu
https://codereview.chromium.org/1859403002/diff/40001/content/public/gpu/gpu_video_decode_accelerator_factory.cc File content/public/gpu/gpu_video_decode_accelerator_factory.cc (right): https://codereview.chromium.org/1859403002/diff/40001/content/public/gpu/gpu_video_decode_accelerator_factory.cc#newcode6 content/public/gpu/gpu_video_decode_accelerator_factory.cc:6: #include "content/gpu/gpu_child_thread.h" On 2016/04/08 16:16:25, jam wrote: > nit: ...
4 years, 8 months ago (2016-04-08 16:39:45 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1859403002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1859403002/60001
4 years, 8 months ago (2016-04-08 16:40:22 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 8 months ago (2016-04-08 17:43:40 UTC) #13
commit-bot: I haz the power
4 years, 8 months ago (2016-04-08 17:45:04 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/7a526cd7c6985df2639f86f43d032a04587dd26e
Cr-Commit-Position: refs/heads/master@{#386121}

Powered by Google App Engine
This is Rietveld 408576698