diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-09-01 11:08:40 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-10-01 12:16:21 +0000 |
commit | 03c549e0392f92c02536d3f86d5e1d8dfa3435ac (patch) | |
tree | fe49d170a929b34ba82cd10db1a0bd8e3760fa4b /chromium/cc/layers/picture_layer_impl.h | |
parent | 5d013f5804a0d91fcf6c626b2d6fb6eca5c845b0 (diff) | |
download | qtwebengine-chromium-03c549e0392f92c02536d3f86d5e1d8dfa3435ac.tar.gz |
BASELINE: Update Chromium to 91.0.4472.160
Change-Id: I0def1f08a2412aeed79a9ab95dd50eb5c3f65f31
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/cc/layers/picture_layer_impl.h')
-rw-r--r-- | chromium/cc/layers/picture_layer_impl.h | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/chromium/cc/layers/picture_layer_impl.h b/chromium/cc/layers/picture_layer_impl.h index e526ef44341..67b1ea5faad 100644 --- a/chromium/cc/layers/picture_layer_impl.h +++ b/chromium/cc/layers/picture_layer_impl.h @@ -236,31 +236,32 @@ class CC_EXPORT PictureLayerImpl // will change transform. bool HasWillChangeTransformHint() const; - PictureLayerImpl* twin_layer_; + PictureLayerImpl* twin_layer_ = nullptr; - std::unique_ptr<PictureLayerTilingSet> tilings_; + std::unique_ptr<PictureLayerTilingSet> tilings_ = + CreatePictureLayerTilingSet(); scoped_refptr<RasterSource> raster_source_; Region invalidation_; // Ideal scales are calcuated from the transforms applied to the layer. They // represent the best known scale from the layer to the final output. // Page scale is from user pinch/zoom. - float ideal_page_scale_; + float ideal_page_scale_ = 0.f; // Device scale is from screen dpi, and it comes from device scale facter. - float ideal_device_scale_; + float ideal_device_scale_ = 0.f; // Source scale comes from javascript css scale. - float ideal_source_scale_; + float ideal_source_scale_ = 0.f; // Contents scale = device scale * page scale * source scale. - float ideal_contents_scale_; + float ideal_contents_scale_ = 0.f; // Raster scales are set from ideal scales. They are scales we choose to // raster at. They may not match the ideal scales at times to avoid raster for // performance reasons. - float raster_page_scale_; - float raster_device_scale_; - float raster_source_scale_; - float raster_contents_scale_; - float low_res_raster_contents_scale_; + float raster_page_scale_ = 0.f; + float raster_device_scale_ = 0.f; + float raster_source_scale_ = 0.f; + float raster_contents_scale_ = 0.f; + float low_res_raster_contents_scale_ = 0.f; bool is_backdrop_filter_mask_ : 1; @@ -269,7 +270,8 @@ class CC_EXPORT PictureLayerImpl bool nearest_neighbor_ : 1; - LCDTextDisallowedReason lcd_text_disallowed_reason_; + LCDTextDisallowedReason lcd_text_disallowed_reason_ = + LCDTextDisallowedReason::kNone; // The intrinsic size of the directly composited image. A directly composited // image is an image which is the only thing drawn into a layer. In these @@ -280,7 +282,7 @@ class CC_EXPORT PictureLayerImpl // time raster scales were calculated. This will be the same as // |raster_source_scale_| if no adjustments were made in // |CalculateDirectlyCompositedImageRasterScale()|. - float directly_composited_image_initial_raster_scale_; + float directly_composited_image_initial_raster_scale_ = 0.f; // Use this instead of |visible_layer_rect()| for tiling calculations. This // takes external viewport and transform for tile priority into account. @@ -303,7 +305,7 @@ class CC_EXPORT PictureLayerImpl PaintWorkletRecordMap paint_worklet_records_; gfx::Size content_bounds_; - TileSizeCalculator tile_size_calculator_; + TileSizeCalculator tile_size_calculator_{this}; // Denotes an area that is damaged and needs redraw. This is in the layer's // space. |