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

Unified Diff: cc/playback/raster_source_unittest.cc

Issue 1991363003: cc: Plumb gpu/sw image decode limits as layer tree settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | cc/test/fake_tile_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/playback/raster_source_unittest.cc
diff --git a/cc/playback/raster_source_unittest.cc b/cc/playback/raster_source_unittest.cc
index 21340a250dc978e1f21e700b27eb79b3ccb7c41c..3dac03c258340da9a05545eb008186ca8f4fea92 100644
--- a/cc/playback/raster_source_unittest.cc
+++ b/cc/playback/raster_source_unittest.cc
@@ -572,7 +572,9 @@ TEST(RasterSourceTest, ImageHijackCanvasRespectsSharedCanvasTransform) {
bool can_use_lcd = true;
scoped_refptr<RasterSource> raster_source =
recording_source->CreateRasterSource(can_use_lcd);
- SoftwareImageDecodeController controller;
+ SoftwareImageDecodeController controller(
+ ResourceFormat::RGBA_8888,
+ LayerTreeSettings().software_decoded_image_budget_bytes);
raster_source->SetImageDecodeController(&controller);
SkBitmap bitmap;
« no previous file with comments | « no previous file | cc/test/fake_tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698