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

Issue 137903003: AVFoundation NSString*, cache them in the AVFoundationInternal LazyInstance. (Closed)

Created:
6 years, 11 months ago by mcasas
Modified:
6 years, 11 months ago
CC:
chromium-reviews, fischman+watch_chromium.org, feature-media-reviews_chromium.org, wjia+watch_chromium.org, mcasas+watch_chromium.org
Visibility:
Public.

Description

AVFoundation NSString*, cache them in the AVFoundationInternal LazyInstance. Currently there's a symbol retrieval in place every time someone asks for a NSString* inside the AVFoundation library. Change this so that the AVFoundationInternal retrieves them on construction and caches them. This CL should not change the behaviour of the avfoundation_glue. BUG=323536, 288562 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245132

Patch Set 1 #

Total comments: 2

Patch Set 2 : tommi@s comments #

Total comments: 1

Patch Set 3 : rsesek@ comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -25 lines) Patch
M media/video/capture/mac/avfoundation_glue.mm View 1 2 3 chunks +90 lines, -25 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
mcasas
rsesek@, tommi@ first draft, PTAL.
6 years, 11 months ago (2014-01-14 10:18:44 UTC) #1
tommi (sloooow) - chröme
nice. https://codereview.chromium.org/137903003/diff/1/media/video/capture/mac/avfoundation_glue.mm File media/video/capture/mac/avfoundation_glue.mm (right): https://codereview.chromium.org/137903003/diff/1/media/video/capture/mac/avfoundation_glue.mm#newcode32 media/video/capture/mac/avfoundation_glue.mm:32: AVCaptureDeviceWasConnectedNotification_ = *reinterpret_cast<NSString**>( There's lot of code duplication ...
6 years, 11 months ago (2014-01-14 15:08:48 UTC) #2
mcasas
rsesek@, tommi@ please have a look.
6 years, 11 months ago (2014-01-14 16:37:06 UTC) #3
tommi (sloooow) - chröme
lgtm
6 years, 11 months ago (2014-01-14 16:54:00 UTC) #4
Robert Sesek
LGTM https://codereview.chromium.org/137903003/diff/100001/media/video/capture/mac/avfoundation_glue.mm File media/video/capture/mac/avfoundation_glue.mm (right): https://codereview.chromium.org/137903003/diff/100001/media/video/capture/mac/avfoundation_glue.mm#newcode37 media/video/capture/mac/avfoundation_glue.mm:37: "AVCaptureDeviceWasConnectedNotification"}, nit: for initializers that do not fit ...
6 years, 11 months ago (2014-01-14 18:42:08 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mcasas@chromium.org/137903003/180001
6 years, 11 months ago (2014-01-15 09:49:13 UTC) #6
commit-bot: I haz the power
6 years, 11 months ago (2014-01-16 05:13:33 UTC) #7
Message was sent while issue was closed.
Change committed as 245132

Powered by Google App Engine
This is Rietveld 408576698