-
Notifications
You must be signed in to change notification settings - Fork 6k
[wip] Revise the raster cache unit test #17790
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -151,7 +151,11 @@ TEST(RasterCache, DeviceRectRoundOut) { | |
| canvas.setMatrix(ctm); | ||
| canvas.translate(248, 0); | ||
|
|
||
| cache.Get(*picture, ctm).draw(canvas); | ||
| #ifndef SUPPORT_FRACTIONAL_TRANSLATION | ||
| canvas.setMatrix(RasterCache::GetIntegralTransCTM(canvas.getTotalMatrix())); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This line defeats the purpose of this test as stated in the comment above it.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we don't snap, we'd fail the integral translation assert instead of of bounds assert above. This test tries to reproduce the bounds assert.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Given the current way that we use the raster cache, this whole test doesn't make sense then. It will be useful when we introduce "cache at 0,0 - render at any fractional translation" later, though. In that case we will see output size differences of up to +1 from the cached image. |
||
| #endif | ||
|
|
||
| cache.Get(*picture, canvas.getTotalMatrix()).draw(canvas); | ||
| } | ||
|
|
||
| } // namespace testing | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.