Commit 10a3909c authored by cblume's avatar cblume Committed by Commit bot

Keep allocation size available in minidumps.

We were previously unable to see the allocation size in the minidump
because it was optimized out. This should keep it around.

BUG=643845
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel

Review-Url: https://codereview.chromium.org/2349553002
Cr-Commit-Position: refs/heads/master@{#419076}
parent ac509606
......@@ -6,6 +6,7 @@
#include <inttypes.h>
#include "base/debug/alias.h"
#include "base/memory/discardable_memory_allocator.h"
#include "base/memory/memory_coordinator_client_registry.h"
#include "base/memory/ptr_util.h"
......@@ -950,9 +951,10 @@ void GpuImageDecodeController::DecodeImageIfNecessary(
{
base::AutoUnlock unlock(lock_);
size_t image_data_size = image_data->size;
base::debug::Alias(&image_data_size);
backing_memory = base::DiscardableMemoryAllocator::GetInstance()
->AllocateLockedDiscardableMemory(image_data->size);
CHECK(backing_memory);
->AllocateLockedDiscardableMemory(image_data_size);
switch (image_data->mode) {
case DecodedDataMode::CPU: {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment