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

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: Addressed comment 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 5e21974d5802a02a71f1ebf7b93e3040112d56d3..dd7bd235b3cfca87ec67661c03bef8ed14c76d0c 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.cc ('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