Skip to content

Commit

Permalink
Move demuxer_memory_limit_starboard.cc (#4683)
Browse files Browse the repository at this point in the history
Move it from //media/base/ to //media/base/starboard/ so it gets code
format.

Also modified .github/CODEOWNERS and .pre-commit-config.yaml to add
//media/base/starboard.

b/322027866
  • Loading branch information
xiaomings authored Jan 10, 2025
1 parent 632168a commit 58fc967
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

/.github/ # no owners
/cobalt/ # no owners
/media/base/starboard/ # no owners
/media/starboard/ # no owners
/starboard/ # no owners
/components/viz/service/display/starboard/ # no owners
Expand Down
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ files: |
(?x)^(
.github/|
cobalt/|
media/base/starboard/|
media/starboard/|
starboard/|
components/viz/service/display/starboard/|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@

#include "media/base/demuxer_memory_limit.h"

#include "base/logging.h"
#include "media/base/decoder_buffer.h"
#include "media/base/starboard_utils.h"
#include "media/base/video_codecs.h"
#include "base/logging.h"

namespace media {

Expand All @@ -30,10 +30,9 @@ size_t GetDemuxerStreamAudioMemoryLimit(
return DecoderBuffer::Allocator::GetInstance()->GetAudioBufferBudget();
}

size_t GetDemuxerStreamVideoMemoryLimit(
Demuxer::DemuxerTypes /*demuxer_type*/,
const VideoDecoderConfig* video_config,
const std::string& mime_type) {
size_t GetDemuxerStreamVideoMemoryLimit(Demuxer::DemuxerTypes /*demuxer_type*/,
const VideoDecoderConfig* video_config,
const std::string& mime_type) {
return static_cast<size_t>(
GetSbMediaVideoBufferBudget(video_config, mime_type));
}
Expand Down

0 comments on commit 58fc967

Please sign in to comment.