Description[ui/surface] Separate image processing logic from presentation logic.
The D3D image processing code from AcceleratedPresenter moves to its own class, "ui/surface/accelerated_surface_transformer_win.h". This split allows the image processing code to be tested independently of the present-scheduling system, and so we add unit tests doing exactly that. Utility functions (loading d3d, creating temp surfaces) doing things commonly required by test, transform, and present code -- these functions are moved to a third location, "ui/surface/d3d9_utils_win.h"
The new unit tests -- which live in the ui_unittests binary -- make extensive use of pseudorandom image content, which I think is kind of neat. The tests use D3D HAL devices; I tried to use REF, but it didn't work, as StretchRect+LINEAR is not supported by refrast. So as a result we may have a GPU vendor dependency in these results.
BUG=161537
TEST=new ui_unittests
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=174028
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=174338
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=174943
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175152
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175211
Patch Set 1 #Patch Set 2 : Initial patch set for self-review. #Patch Set 3 : Nick's repairs after self-review. #Patch Set 4 : Sync/rebase. #
Total comments: 23
Patch Set 5 : apatrick's fixes. #
Total comments: 9
Patch Set 6 : Found better way to suppress on XP #Patch Set 7 : Adding SURFACE_EXPORT to fix component build. #Patch Set 8 : Made new deps Windows-only (yuck) #
Total comments: 2
Patch Set 9 : Accidentally the whole ui.gyp dep #Patch Set 10 : Marked tests FAILS_, improved early-termination #Patch Set 11 : Added adapter info. #Patch Set 12 : Make tests pass on Intel Mobile 965 #
Total comments: 2
Patch Set 13 : Change FAILS_ to FLAKY_ #Patch Set 14 : Create new test binary for surface tests. #Patch Set 15 : Remove unnecessary dep. #
Total comments: 2
Patch Set 16 : Fixed dependencies of surface_gpu_tests. #
Messages
Total messages: 33 (0 generated)
|