Skip to content

Commit

Permalink
Revert "Always use Large Chunk rather than Small Chunk for now to wor…
Browse files Browse the repository at this point in the history
…karound parent process crash"

This reverts commit 2eb8767.
  • Loading branch information
kenz-gelsoft committed Oct 15, 2024
1 parent bba4632 commit 4264e92
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gfx/layers/wr/IpcResourceUpdateQueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ layers::OffsetRange ShmSegmentsWriter::Write(Range<uint8_t> aBytes) {
const size_t start = mCursor;
const size_t length = aBytes.length();

// if (length >= mChunkSize * 4) {
if (length > 0) {
if (length >= mChunkSize * 4) {
auto range = AllocLargeChunk(length);
if (range.length()) {
// Allocation was successful
Expand Down

0 comments on commit 4264e92

Please sign in to comment.