diff options
-rw-r--r-- | cc/tiles/software_image_decode_controller.cc | 3 | ||||
-rw-r--r-- | cc/tiles/software_image_decode_controller.h | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/cc/tiles/software_image_decode_controller.cc b/cc/tiles/software_image_decode_controller.cc index c61a0c6..d1e7f80 100644 --- a/cc/tiles/software_image_decode_controller.cc +++ b/cc/tiles/software_image_decode_controller.cc @@ -146,6 +146,9 @@ SoftwareImageDecodeController::SoftwareImageDecodeController( locked_images_budget_(kLockedMemoryLimitBytes), format_(format) {} +SoftwareImageDecodeController::SoftwareImageDecodeController() + : SoftwareImageDecodeController(RGBA_8888) {} + SoftwareImageDecodeController::~SoftwareImageDecodeController() { DCHECK_EQ(0u, decoded_images_ref_counts_.size()); DCHECK_EQ(0u, at_raster_decoded_images_ref_counts_.size()); diff --git a/cc/tiles/software_image_decode_controller.h b/cc/tiles/software_image_decode_controller.h index 20dc451..54d655e 100644 --- a/cc/tiles/software_image_decode_controller.h +++ b/cc/tiles/software_image_decode_controller.h @@ -96,7 +96,8 @@ class CC_EXPORT SoftwareImageDecodeController : public ImageDecodeController { using ImageKey = ImageDecodeControllerKey; using ImageKeyHash = ImageDecodeControllerKeyHash; - explicit SoftwareImageDecodeController(ResourceFormat format = RGBA_8888); + explicit SoftwareImageDecodeController(ResourceFormat format); + SoftwareImageDecodeController(); ~SoftwareImageDecodeController() override; // ImageDecodeController overrides. |