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

Unified Diff: cc/tiles/gpu_image_decode_controller.cc

Issue 2352533002: Remove optimization-blocking code. (Closed)
Patch Set: 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 ea60fb0e28e3d778e311245c44af19968e5299d0..882346ef57650d665df14e26927d54cd4108115a 100644
--- a/cc/tiles/gpu_image_decode_controller.cc
+++ b/cc/tiles/gpu_image_decode_controller.cc
@@ -943,10 +943,8 @@ 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);
+ ->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