| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 from common.skia import global_constants | 5 from common.skia import global_constants |
| 6 | 6 |
| 7 | 7 |
| 8 DEPS = [ | 8 DEPS = [ |
| 9 'ct', | 9 'ct', |
| 10 'file', | 10 'file', |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 elif 'BENCH' in buildername: | 71 elif 'BENCH' in buildername: |
| 72 skia_tool = 'nanobench' | 72 skia_tool = 'nanobench' |
| 73 build_target = 'nanobench' | 73 build_target = 'nanobench' |
| 74 elif 'IMG_DECODE' in buildername: | 74 elif 'IMG_DECODE' in buildername: |
| 75 skia_tool = 'get_images_from_skps' | 75 skia_tool = 'get_images_from_skps' |
| 76 build_target = 'tools' | 76 build_target = 'tools' |
| 77 else: | 77 else: |
| 78 raise Exception('Do not recognise the buildername %s.' % buildername) | 78 raise Exception('Do not recognise the buildername %s.' % buildername) |
| 79 | 79 |
| 80 # Checkout Skia and Chromium. | 80 # Checkout Skia and Chromium. |
| 81 gclient_cfg = api.gclient.make_config() | 81 gclient_cfg = api.gclient.make_config(GIT_MODE=True) |
| 82 | 82 |
| 83 skia = gclient_cfg.solutions.add() | 83 skia = gclient_cfg.solutions.add() |
| 84 skia.name = 'skia' | 84 skia.name = 'skia' |
| 85 skia.managed = False | 85 skia.managed = False |
| 86 skia.url = global_constants.SKIA_REPO | 86 skia.url = global_constants.SKIA_REPO |
| 87 skia.revision = (api.properties.get('parent_got_revision') or | 87 skia.revision = (api.properties.get('parent_got_revision') or |
| 88 api.properties.get('orig_revision') or | 88 api.properties.get('orig_revision') or |
| 89 api.properties.get('revision') or | 89 api.properties.get('revision') or |
| 90 'origin/master') | 90 'origin/master') |
| 91 gclient_cfg.got_revision_mapping['skia'] = 'got_revision' | 91 gclient_cfg.got_revision_mapping['skia'] = 'got_revision' |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 yield( | 423 yield( |
| 424 api.test('CT_IMG_DECODE_10k_SKPs_Trybot') + | 424 api.test('CT_IMG_DECODE_10k_SKPs_Trybot') + |
| 425 api.properties( | 425 api.properties( |
| 426 buildername='Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-CT_IMG_DECODE_' | 426 buildername='Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-CT_IMG_DECODE_' |
| 427 '10k_SKPs_Trybot', | 427 '10k_SKPs_Trybot', |
| 428 ct_num_slaves=ct_num_slaves, | 428 ct_num_slaves=ct_num_slaves, |
| 429 num_per_slave=num_per_slave, | 429 num_per_slave=num_per_slave, |
| 430 revision=skia_revision, | 430 revision=skia_revision, |
| 431 ) | 431 ) |
| 432 ) | 432 ) |
| OLD | NEW |