diff options
author | nick@chromium.org <nick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-19 23:07:09 +0000 |
---|---|---|
committer | nick@chromium.org <nick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-19 23:07:09 +0000 |
commit | aac1bd6ffa19ec45c35b5664c1f1934642ec6909 (patch) | |
tree | 1329cf1de4f49443a37bca7512030efe91dfe107 /ui/ui_unittests.gypi | |
parent | 481a87e6487337a845187fb519b6d2195c1dfe1e (diff) | |
download | chromium_src-aac1bd6ffa19ec45c35b5664c1f1934642ec6909.zip chromium_src-aac1bd6ffa19ec45c35b5664c1f1934642ec6909.tar.gz chromium_src-aac1bd6ffa19ec45c35b5664c1f1934642ec6909.tar.bz2 |
[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
Review URL: https://chromiumcodereview.appspot.com/11464017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174028 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/ui_unittests.gypi')
-rw-r--r-- | ui/ui_unittests.gypi | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/ui_unittests.gypi b/ui/ui_unittests.gypi index 36a1afa..62d6099 100644 --- a/ui/ui_unittests.gypi +++ b/ui/ui_unittests.gypi @@ -161,6 +161,10 @@ 'gfx/font_fallback_win_unittest.cc', 'gfx/icon_util_unittest.cc', 'gfx/platform_font_win_unittest.cc', + 'surface/accelerated_surface_transformer_win_unittest.cc' + ], + 'dependencies': [ + '../ui/surface/surface.gyp:surface', ], 'include_dirs': [ '../..', |