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

Unified Diff: cc/tiles/gpu_image_decode_controller.cc

Issue 2349553002: Keep allocation size available in minidumps. (Closed)
Patch Set: size_t instead of auto. Using the variable. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiles/gpu_image_decode_controller.cc
diff --git a/cc/tiles/gpu_image_decode_controller.cc b/cc/tiles/gpu_image_decode_controller.cc
index 405879e9f65abf76460441306366a9df3a84bd41..2a049a6245dedb2ba9a0f2256451b2d90831948e 100644
--- a/cc/tiles/gpu_image_decode_controller.cc
+++ b/cc/tiles/gpu_image_decode_controller.cc
@@ -6,6 +6,7 @@
#include <inttypes.h>
+#include "base/debug/alias.h"
#include "base/memory/discardable_memory_allocator.h"
#include "base/memory/ptr_util.h"
#include "base/metrics/histogram_macros.h"
@@ -945,9 +946,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: {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698