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

Issue 11722023: Validate texture sizes given to VDA (Closed)

Created:
7 years, 11 months ago by sheu
Modified:
7 years, 11 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, apatrick_chromium, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Validate texture sizes given to VDA Make sure that the texture sizes as passed from the untrusted renderer to the to the VDA on the GPU process match with the texture's size as the GPU process has tracked it. BUG=chromium:168293 TEST=local build, run on x86, snow Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175101

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -0 lines) Patch
M content/common/gpu/media/gpu_video_decode_accelerator.cc View 1 chunk +7 lines, -0 lines 2 comments Download

Messages

Total messages: 10 (0 generated)
sheu
I don't know if there is an existing bug number I should be using for ...
7 years, 11 months ago (2013-01-04 00:47:54 UTC) #1
Ami GONE FROM CHROMIUM
LGTM assuming the "run on x86, snow" TESTED line refers to running *and* HW decode ...
7 years, 11 months ago (2013-01-04 01:23:30 UTC) #2
sheu
On 2013/01/04 01:23:30, Ami Fischman wrote: > LGTM assuming the "run on x86, snow" TESTED ...
7 years, 11 months ago (2013-01-04 01:29:10 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sheu@chromium.org/11722023/1
7 years, 11 months ago (2013-01-04 01:29:49 UTC) #4
Chris Evans
On 2013/01/04 01:29:49, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
7 years, 11 months ago (2013-01-04 01:31:49 UTC) #5
Ami GONE FROM CHROMIUM
FWIW there is no bot coverage for HW decode on x86, since x86 platforms only ...
7 years, 11 months ago (2013-01-04 01:34:16 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sheu@chromium.org/11722023/1
7 years, 11 months ago (2013-01-04 01:45:32 UTC) #7
commit-bot: I haz the power
Change committed as 175101
7 years, 11 months ago (2013-01-04 04:44:36 UTC) #8
dwkang1
https://chromiumcodereview.appspot.com/11722023/diff/1/content/common/gpu/media/gpu_video_decode_accelerator.cc File content/common/gpu/media/gpu_video_decode_accelerator.cc (right): https://chromiumcodereview.appspot.com/11722023/diff/1/content/common/gpu/media/gpu_video_decode_accelerator.cc#newcode235 content/common/gpu/media/gpu_video_decode_accelerator.cc:235: info->GetLevelSize(0, 0, &width, &height); crbug says I don't have ...
7 years, 11 months ago (2013-01-15 08:17:45 UTC) #9
sheu
7 years, 11 months ago (2013-01-15 08:25:38 UTC) #10
Message was sent while issue was closed.
https://chromiumcodereview.appspot.com/11722023/diff/1/content/common/gpu/med...
File content/common/gpu/media/gpu_video_decode_accelerator.cc (right):

https://chromiumcodereview.appspot.com/11722023/diff/1/content/common/gpu/med...
content/common/gpu/media/gpu_video_decode_accelerator.cc:235:
info->GetLevelSize(0, 0, &width, &height);
On 2013/01/15 08:17:46, dwkang1 wrote:
> crbug says I don't have permission for 168293. So I leave a comment here.
> 
> Could you check this works well in Debug build? It seems that this line leads
to
> a DCHECK error in texture_manager.cc:37. According to the GetLevelSize() code,
> the first argument of this call should be texture target.

It looks like you're right; I'll have to follow-up on this CL.  It turns out the
"face" argument isn't "face index", but "face target": 

http://code.google.com/searchframe#OAMlx_jo-ck/src/gpu/command_buffer/service...

Behavior is still correct in release build; we hit a NOTREACHED(), but default
to 0, which is what we want.  Still need to fix though.

Powered by Google App Engine
This is Rietveld 408576698