DescriptionMake ui::Snapshot asynchronous on Android, remove CompositeAndReadback.
The android pixel tests use the ui::Snapshot code to get a pixel copy
of the content_shell's output. Make this behaviour match the aura
implementation of ui::Snapshot by returning false in the synchronous
verion, causing callsites to fall back to the async one.
This implements the async snapshots by moving the aura implementation
out into snapshot_async.cc and reusing that code (with one #if for
RGBA vs BGRA ordering).
After this, the pixel tests get a bitmap from cc instead of creating
their own bitmap. The result is that the bitmap has a slightly
different size (384x528) which is the size of the root layer. The
pixel tests were previously trying to crop to 400x300, which is
outside the bounds of this bitmap, so change them to crop to 300x300
instead, and increment their versions to pick up the new pngs.
BUG=252046, 371592
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270778
Patch Set 1 #
Total comments: 4
Patch Set 2 : pixeltests: cleanup #Patch Set 3 : pixeltests: expectations #
Total comments: 2
Patch Set 4 : pixeltests: betterexpectations #
Total comments: 15
Patch Set 5 : pixeltests: feedback #Patch Set 6 : pixeltests: ios #Patch Set 7 : pixeltests: ios2 #Patch Set 8 : pixeltests: syntax #Messages
Total messages: 37 (0 generated)
|