Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 9867003

Browse files
author
Jonah Williams
authored
Really fix unused-variable error on SUPPORT_FRACTIONAL_TRANSLATION variant (#33406)
1 parent f1a08ff commit 9867003

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flow/layers/display_list_layer_unittests.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,11 @@ TEST_F(DisplayListLayerTest, SimpleDisplayListOpacityInheritance) {
137137

138138
auto save_layer_bounds =
139139
picture_bounds.makeOffset(layer_offset.fX, layer_offset.fY);
140+
#ifndef SUPPORT_FRACTIONAL_TRANSLATION
140141
auto opacity_integral_matrix =
141142
RasterCache::GetIntegralTransCTM(SkMatrix::Translate(opacity_offset));
142143
SkMatrix layer_offset_matrix = opacity_integral_matrix;
143144
layer_offset_matrix.postTranslate(layer_offset.fX, layer_offset.fY);
144-
#ifndef SUPPORT_FRACTIONAL_TRANSLATION
145145
auto layer_offset_integral_matrix =
146146
RasterCache::GetIntegralTransCTM(layer_offset_matrix);
147147
#endif
@@ -219,11 +219,11 @@ TEST_F(DisplayListLayerTest, IncompatibleDisplayListOpacityInheritance) {
219219
#ifndef SUPPORT_FRACTIONAL_TRANSLATION
220220
auto opacity_integral_matrix =
221221
RasterCache::GetIntegralTransCTM(SkMatrix::Translate(opacity_offset));
222-
#endif
223222
SkMatrix layer_offset_matrix = opacity_integral_matrix;
224223
layer_offset_matrix.postTranslate(layer_offset.fX, layer_offset.fY);
225224
auto layer_offset_integral_matrix =
226225
RasterCache::GetIntegralTransCTM(layer_offset_matrix);
226+
#endif
227227
DisplayListBuilder expected_builder;
228228
/* opacity_layer::Paint() */ {
229229
expected_builder.save();

0 commit comments

Comments
 (0)