Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (C) 2010 Google Inc. All rights reserved. | 1 # Copyright (C) 2010 Google Inc. All rights reserved. |
| 2 # | 2 # |
| 3 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
| 4 # modification, are permitted provided that the following conditions are | 4 # modification, are permitted provided that the following conditions are |
| 5 # met: | 5 # met: |
| 6 # | 6 # |
| 7 # * Redistributions of source code must retain the above copyright | 7 # * Redistributions of source code must retain the above copyright |
| 8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
| 9 # * Redistributions in binary form must reproduce the above | 9 # * Redistributions in binary form must reproduce the above |
| 10 # copyright notice, this list of conditions and the following disclaimer | 10 # copyright notice, this list of conditions and the following disclaimer |
| (...skipping 1553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1564 def look_for_new_crash_logs(self, crashed_processes, start_time): | 1564 def look_for_new_crash_logs(self, crashed_processes, start_time): |
| 1565 pass | 1565 pass |
| 1566 | 1566 |
| 1567 def look_for_new_samples(self, unresponsive_processes, start_time): | 1567 def look_for_new_samples(self, unresponsive_processes, start_time): |
| 1568 pass | 1568 pass |
| 1569 | 1569 |
| 1570 def sample_process(self, name, pid): | 1570 def sample_process(self, name, pid): |
| 1571 pass | 1571 pass |
| 1572 | 1572 |
| 1573 def physical_test_suites(self): | 1573 def physical_test_suites(self): |
| 1574 small_tile_flags = [ | |
| 1575 '--default-tile-width=16', | |
| 1576 '--default-tile-height=16', | |
| 1577 '--max-untiled-layer-width=16', | |
| 1578 '--max-untiled-layer-height=16' | |
| 1579 ] | |
| 1580 | |
| 1574 return [ | 1581 return [ |
| 1575 # For example, to turn on force-compositing-mode in the svg/ directo ry: | 1582 # For example, to turn on force-compositing-mode in the svg/ directo ry: |
| 1576 # PhysicalTestSuite('svg', ['--force-compositing-mode']), | 1583 # PhysicalTestSuite('svg', ['--force-compositing-mode']), |
| 1584 | |
| 1585 # Use small tiles to make show most rect under-invalidations. | |
| 1586 PhysicalTestSuite('fast/repaint', small_tile_flags), | |
| 1587 PhysicalTestSuite('paint/invalidation', small_tile_flags), | |
| 1588 PhysicalTestSuite('compositing', small_tile_flags), | |
|
Xianzhu
2016/06/08 17:01:20
Do you think this is proper?
pdr.
2016/06/08 17:32:18
These choices make sense to me. My only worry is t
Xianzhu
2016/06/08 17:46:40
Currently the tile size configurations are initial
| |
| 1589 | |
| 1577 PhysicalTestSuite('fast/text', ["--enable-direct-write", "--enable-f ont-antialiasing"]), | 1590 PhysicalTestSuite('fast/text', ["--enable-direct-write", "--enable-f ont-antialiasing"]), |
| 1578 ] | 1591 ] |
| 1579 | 1592 |
| 1580 def virtual_test_suites(self): | 1593 def virtual_test_suites(self): |
| 1581 if self._virtual_test_suites is None: | 1594 if self._virtual_test_suites is None: |
| 1582 path_to_virtual_test_suites = self._filesystem.join(self.layout_test s_dir(), 'VirtualTestSuites') | 1595 path_to_virtual_test_suites = self._filesystem.join(self.layout_test s_dir(), 'VirtualTestSuites') |
| 1583 assert self._filesystem.exists(path_to_virtual_test_suites), 'Layout Tests/VirtualTestSuites not found' | 1596 assert self._filesystem.exists(path_to_virtual_test_suites), 'Layout Tests/VirtualTestSuites not found' |
| 1584 try: | 1597 try: |
| 1585 test_suite_json = json.loads(self._filesystem.read_text_file(pat h_to_virtual_test_suites)) | 1598 test_suite_json = json.loads(self._filesystem.read_text_file(pat h_to_virtual_test_suites)) |
| 1586 self._virtual_test_suites = [VirtualTestSuite(**d) for d in test _suite_json] | 1599 self._virtual_test_suites = [VirtualTestSuite(**d) for d in test _suite_json] |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1784 | 1797 |
| 1785 def __init__(self, base, args, reference_args=None): | 1798 def __init__(self, base, args, reference_args=None): |
| 1786 self.name = base | 1799 self.name = base |
| 1787 self.base = base | 1800 self.base = base |
| 1788 self.args = args | 1801 self.args = args |
| 1789 self.reference_args = args if reference_args is None else reference_args | 1802 self.reference_args = args if reference_args is None else reference_args |
| 1790 self.tests = set() | 1803 self.tests = set() |
| 1791 | 1804 |
| 1792 def __repr__(self): | 1805 def __repr__(self): |
| 1793 return "PhysicalTestSuite('%s', '%s', %s, %s)" % (self.name, self.base, self.args, self.reference_args) | 1806 return "PhysicalTestSuite('%s', '%s', %s, %s)" % (self.name, self.base, self.args, self.reference_args) |
| OLD | NEW |