| OLD | NEW |
| (Empty) |
| 1 #!/usr/bin/env python | |
| 2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
| 3 # Use of this source code is governed by a BSD-style license that can be | |
| 4 # found in the LICENSE file. | |
| 5 | |
| 6 """ Check out the Skia sources. """ | |
| 7 | |
| 8 # build_step must be imported first, since it does some tweaking of PYTHONPATH. | |
| 9 from build_step import BuildStep | |
| 10 from utils import sync_skia_in_chrome | |
| 11 import sys | |
| 12 | |
| 13 | |
| 14 class ChromeCanaryUpdate(BuildStep): | |
| 15 def __init__(self, timeout=24000, no_output_timeout=4800, attempts=5, | |
| 16 **kwargs): | |
| 17 super(ChromeCanaryUpdate, self).__init__( | |
| 18 timeout=timeout, | |
| 19 no_output_timeout=no_output_timeout, | |
| 20 attempts=attempts, | |
| 21 **kwargs) | |
| 22 | |
| 23 def _Run(self): | |
| 24 chrome_rev = self._args.get('chrome_rev', | |
| 25 sync_skia_in_chrome.CHROME_REV_MASTER) | |
| 26 skia_rev = (sync_skia_in_chrome.SKIA_REV_DEPS | |
| 27 if self._args.get('use_lkgr_skia') | |
| 28 else (self._revision or sync_skia_in_chrome.SKIA_REV_MASTER)) | |
| 29 (got_skia_rev, got_chrome_rev) = sync_skia_in_chrome.Sync( | |
| 30 skia_revision=skia_rev, | |
| 31 chrome_revision=chrome_rev, | |
| 32 gyp_defines=self._flavor_utils.gyp_defines, | |
| 33 gyp_generators=self._flavor_utils.gyp_generators) | |
| 34 print 'Skia updated to %s' % got_skia_rev | |
| 35 print 'Chrome updated to %s' % got_chrome_rev | |
| 36 | |
| 37 | |
| 38 if '__main__' == __name__: | |
| 39 sys.exit(BuildStep.RunBuildStep(ChromeCanaryUpdate)) | |
| OLD | NEW |