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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 1808633002: Use preferred format to allocate memory for decoded images (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index 0091ee5bb148f176610ff2126ba23bcba24d2d19..b22de54fd21c0bf080023b2e712a8fbf3d812e18 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -2145,7 +2145,8 @@ void LayerTreeHostImpl::CreateTileManagerResources() {
image_decode_controller_ = make_scoped_ptr(new GpuImageDecodeController);
} else {
image_decode_controller_ =
- make_scoped_ptr(new SoftwareImageDecodeController);
+ make_scoped_ptr(new SoftwareImageDecodeController(
+ settings_.renderer_settings.preferred_tile_format));
}
// TODO(vmpstr): Initialize tile task limit at ctor time.
« cc/tiles/software_image_decode_controller.h ('K') | « cc/tiles/software_image_decode_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698