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

Issue 2036723002: Limit the number of ARC codec (Closed)

Created:
4 years, 6 months ago by kcwu
Modified:
4 years, 6 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), elijahtaylor+arcwatch_chromium.org, hidehiko+watch_chromium.org, lhchavez+watch_chromium.org, piman+watch_chromium.org, posciak+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yusukes+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Limit the number of ARC codec BUG=b/28157714 TEST=create too much ARC codecs and it should fail when reach limit Committed: https://crrev.com/1b88e4a9efae89275f1ae2425768d39988d28e45 Cr-Commit-Position: refs/heads/master@{#398218}

Patch Set 1 #

Total comments: 13

Patch Set 2 : addressed owenlin and posciak's comments #

Total comments: 10

Patch Set 3 : address posciak's comments; add DeprecatedInitialize() #

Total comments: 1

Patch Set 4 : fix nits #

Total comments: 4

Patch Set 5 : address dcheng's comments: static_assert #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -42 lines) Patch
M chrome/gpu/arc_gpu_video_decode_accelerator.h View 1 2 chunks +9 lines, -2 lines 0 comments Download
M chrome/gpu/arc_gpu_video_decode_accelerator.cc View 1 2 6 chunks +40 lines, -17 lines 0 comments Download
M chrome/gpu/arc_video_accelerator.h View 1 2 3 chunks +7 lines, -5 lines 0 comments Download
M chrome/gpu/gpu_arc_video_service.h View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M chrome/gpu/gpu_arc_video_service.cc View 1 2 3 4 5 chunks +48 lines, -6 lines 0 comments Download
M components/arc/common/video_accelerator.mojom View 1 2 3 2 chunks +15 lines, -11 lines 0 comments Download

Messages

Total messages: 24 (8 generated)
kcwu
4 years, 6 months ago (2016-06-02 14:55:33 UTC) #2
owenlin_google
lgtm https://codereview.chromium.org/2036723002/diff/1/components/arc/common/video_accelerator.mojom File components/arc/common/video_accelerator.mojom (right): https://codereview.chromium.org/2036723002/diff/1/components/arc/common/video_accelerator.mojom#newcode62 components/arc/common/video_accelerator.mojom:62: Initialize@0(ArcVideoAcceleratorConfig config) => (bool result, [MinVersion=1] Error error); ...
4 years, 6 months ago (2016-06-03 02:26:55 UTC) #4
Pawel Osciak
https://codereview.chromium.org/2036723002/diff/1/chrome/gpu/arc_gpu_video_decode_accelerator.cc File chrome/gpu/arc_gpu_video_decode_accelerator.cc (right): https://codereview.chromium.org/2036723002/diff/1/chrome/gpu/arc_gpu_video_decode_accelerator.cc#newcode63 chrome/gpu/arc_gpu_video_decode_accelerator.cc:63: if (vda_) { How do we guarantee this happens ...
4 years, 6 months ago (2016-06-03 03:56:18 UTC) #5
kcwu
https://codereview.chromium.org/2036723002/diff/1/chrome/gpu/gpu_arc_video_service.cc File chrome/gpu/gpu_arc_video_service.cc (right): https://codereview.chromium.org/2036723002/diff/1/chrome/gpu/gpu_arc_video_service.cc#newcode145 chrome/gpu/gpu_arc_video_service.cc:145: callback.Run(true, ::arc::mojom::VideoAcceleratorService::Error::NO_ERROR); On 2016/06/03 03:56:18, Pawel Osciak wrote: > ...
4 years, 6 months ago (2016-06-03 08:28:58 UTC) #6
kcwu
On 2016/06/03 08:28:58, kcwu wrote: > https://codereview.chromium.org/2036723002/diff/1/chrome/gpu/gpu_arc_video_service.cc > File chrome/gpu/gpu_arc_video_service.cc (right): > > https://codereview.chromium.org/2036723002/diff/1/chrome/gpu/gpu_arc_video_service.cc#newcode145 > ...
4 years, 6 months ago (2016-06-03 08:29:38 UTC) #7
kcwu
https://codereview.chromium.org/2036723002/diff/1/chrome/gpu/arc_gpu_video_decode_accelerator.cc File chrome/gpu/arc_gpu_video_decode_accelerator.cc (right): https://codereview.chromium.org/2036723002/diff/1/chrome/gpu/arc_gpu_video_decode_accelerator.cc#newcode63 chrome/gpu/arc_gpu_video_decode_accelerator.cc:63: if (vda_) { On 2016/06/03 03:56:18, Pawel Osciak wrote: ...
4 years, 6 months ago (2016-06-03 13:14:15 UTC) #9
Pawel Osciak
lgtm % nits https://codereview.chromium.org/2036723002/diff/40001/chrome/gpu/arc_gpu_video_decode_accelerator.cc File chrome/gpu/arc_gpu_video_decode_accelerator.cc (right): https://codereview.chromium.org/2036723002/diff/40001/chrome/gpu/arc_gpu_video_decode_accelerator.cc#newcode23 chrome/gpu/arc_gpu_video_decode_accelerator.cc:23: // Maximum number of concurrent ARC ...
4 years, 6 months ago (2016-06-06 05:49:13 UTC) #10
kcwu
https://codereview.chromium.org/2036723002/diff/40001/chrome/gpu/arc_gpu_video_decode_accelerator.cc File chrome/gpu/arc_gpu_video_decode_accelerator.cc (right): https://codereview.chromium.org/2036723002/diff/40001/chrome/gpu/arc_gpu_video_decode_accelerator.cc#newcode23 chrome/gpu/arc_gpu_video_decode_accelerator.cc:23: // Maximum number of concurrent ARC video client. On ...
4 years, 6 months ago (2016-06-06 06:53:12 UTC) #11
Pawel Osciak
Thanks, lgtm % tiny nit https://codereview.chromium.org/2036723002/diff/60001/components/arc/common/video_accelerator.mojom File components/arc/common/video_accelerator.mojom (right): https://codereview.chromium.org/2036723002/diff/60001/components/arc/common/video_accelerator.mojom#newcode65 components/arc/common/video_accelerator.mojom:65: Initialize@7(ArcVideoAcceleratorConfig config) => (Result ...
4 years, 6 months ago (2016-06-06 07:17:20 UTC) #12
kcwu
@dcheng, please OWNERS review for components/arc/common/video_accelerator.mojom Thanks.
4 years, 6 months ago (2016-06-06 07:30:07 UTC) #14
dcheng
https://codereview.chromium.org/2036723002/diff/80001/chrome/gpu/gpu_arc_video_service.cc File chrome/gpu/gpu_arc_video_service.cc (right): https://codereview.chromium.org/2036723002/diff/80001/chrome/gpu/gpu_arc_video_service.cc#newcode113 chrome/gpu/gpu_arc_video_service.cc:113: static_cast<::arc::mojom::VideoAcceleratorService::Result>(error)); Until we have enum traits, can we static_assert ...
4 years, 6 months ago (2016-06-07 00:57:56 UTC) #16
kcwu
https://codereview.chromium.org/2036723002/diff/80001/chrome/gpu/gpu_arc_video_service.cc File chrome/gpu/gpu_arc_video_service.cc (right): https://codereview.chromium.org/2036723002/diff/80001/chrome/gpu/gpu_arc_video_service.cc#newcode113 chrome/gpu/gpu_arc_video_service.cc:113: static_cast<::arc::mojom::VideoAcceleratorService::Result>(error)); On 2016/06/07 00:57:56, dcheng wrote: > Until we ...
4 years, 6 months ago (2016-06-07 01:50:08 UTC) #17
dcheng
mojom lgtm
4 years, 6 months ago (2016-06-07 02:25:31 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2036723002/120001
4 years, 6 months ago (2016-06-07 03:11:06 UTC) #21
commit-bot: I haz the power
Committed patchset #5 (id:120001)
4 years, 6 months ago (2016-06-07 04:10:44 UTC) #22
commit-bot: I haz the power
4 years, 6 months ago (2016-06-07 04:12:21 UTC) #24
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/1b88e4a9efae89275f1ae2425768d39988d28e45
Cr-Commit-Position: refs/heads/master@{#398218}

Powered by Google App Engine
This is Rietveld 408576698